The Dink Network

Floating Point Numbers and Dink

February 21st 2010, 01:17 AM
burntree.gif
Fireball5
Peasant He/Him Australia
Let me heat that up for you... 
I'm sure we can make a psuedo-floating point number. I havn't tested this yet as I'm too *busy* doing other things, but I'm sure it could be possible.

I don't know if anything like this has been done before, but couldn't you use two variables, one for the left of the decimal point and one for the right of the decimal point? Or maybe have a variable with a whole number, and another variable that determines where the decimal point is placed?

Then maybe a scriot that could determine the remainder and continue division and convert the result into a floating point number (two variables)?

I'd like to see this done.

Discuss.
February 21st 2010, 06:09 AM
peasantmb.gif
yeoldetoast
Peasant They/Them Australia
LOOK UPON MY DEFORMED FACE! 
There's probably some really complicated way to do it, but I didn't care too much for it. If you find a way, then that's just great. I'll use it in my Celsius to Fahrenheit converter in my potion system.
Recurring stuff like 1/3, 2/3 etc would be horrendous.
February 21st 2010, 03:15 PM
burntree.gif
Fireball5
Peasant He/Him Australia
Let me heat that up for you... 
The way the system would be designed, I hypothesise that the regular errors encountered when processing flotaing point numbers (such as replacing 0.1 with 0.0999999998) would be eliminated, providing more accuracy. This would probably be because the division would have to be programmed in a script, not necessarily a complex one, but done in such a way that each each digit would be calculated individualy or multiplied by a multiple of ten before being divided.