MAMEWorld >> The Loony Bin
View all threads Index   Flat Mode Flat  

krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM
Re: Programming/maths question....soft floats...
07/26/13 10:55 PM


Some thoughts/questions...

Is there any way to use a lookup table to simplify the math?

Are the input values limited to specific values or a limited range?

What kind of rounding/truncation are you using? http://en.wikipedia.org/wiki/Rounding

My gut says that some sort of a custom fixed point implementation might be the best course of action. For example, when dealing with money, it's often easiest to work in cents, using an implied decimal point rather than working with dollars and fractional dollars.


GroovyMAME support forum on BYOAC







Entire thread
Subject Posted by Posted on
* Programming/maths question....soft floats... italieAdministrator 07/26/13 02:21 PM
. * Thanks for all the suggestions.... italieAdministrator  07/27/13 12:44 AM
. * Re: Programming/maths question....soft floats... krick  07/26/13 10:55 PM
. * Re: Programming/maths question....soft floats... lharms  07/26/13 09:53 PM
. * Re: Programming/maths question....soft floats... amused  07/26/13 07:50 PM
. * Re: Programming/maths question....soft floats... italieAdministrator  07/27/13 12:50 AM
. * Re: Programming/maths question....soft floats... krick  07/27/13 04:52 AM
. * Re: Programming/maths question....soft floats... Vas Crabb  07/26/13 06:31 PM
. * Re: Programming/maths question....soft floats... GatKongModerator  07/26/13 02:56 PM
. * Re: Programming/maths question....soft floats... Gor  07/26/13 03:52 PM
. * Re: Programming/maths question....soft floats... italieAdministrator  07/26/13 04:14 PM

Extra information Permissions
Moderator:  GatKong 
0 registered and 493 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1080