Monday, May 7, 2018

Digest for comp.lang.c++@googlegroups.com - 1 update in 1 topic

Christian Gollwitzer <auriocus@gmx.de>: May 07 07:45PM +0200


>> You keep repeating this, but I don't understand why you need fixed point
>> "native" to the langugage? In C++, surely you wouldn't do the
 
> Why not have it?
 
Because you can easily do it yourself, where "yourself" can be a 3rd
party library. Let's see:
 
https://app.cear.ufpb.br/~lucas.hartmann/2015/08/27/easy-fixed-point-math-with-c/
https://gist.github.com/dflemstr/294959/aa90ff5b1a66b45b9edb30a432a66f8383d368e6
https://embeddedartistry.com/blog/2017/8/25/c11-fixed-point-arithemetic-library
-> https://github.com/johnmcfarlane/fixed_point
 
As it seems, there is a number of options to choose from if you don't
want to reinvent the wheel.
 
>> application logic using explicit integers, but write your own
>> fixed-point class and use that. I.e., instead of
 
> I was talking about C too. Good luck writing a number class in that.
 
There is an easy solution, get a C++ compiler. They are free now.
 
Christian
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: