[SCRIPT] Floating point math lib v1 upgrade (28-11-06)

The place to discuss scripting and game modifications for X³: Reunion.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Jakesnake5
Posts: 2880
Joined: Fri, 17. Feb 06, 04:55
x4

Post by Jakesnake5 » Thu, 10. Jan 08, 01:30

:D
Perfection is in the hands of God, we bags of dirt can only do the best we can©
[ external image ]
Modders are a source of ideas to help the Game Makers improve what they have made. Cherrish them, for they are the fruit of thy labors.©

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13300
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid » Mon, 28. Jan 08, 13:15

Jakesnake5 wrote:@Euclid

I just recently took a look at, and tried out you're functions. VERY usefull.

I applied them to a construction bit for the Exodus Mod.

'''''''''''''''''
Hi Jake :)

Good to know that there is some application for it.


Cheers Euclid

Gqqnbig
Posts: 66
Joined: Fri, 12. Jul 13, 14:08

Post by Gqqnbig » Sat, 3. Aug 13, 04:10

The download link is broken. Can you fix it?

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13300
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid » Sun, 4. Aug 13, 00:52

Thanks for pointing that out. Download link fixed.


Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

Gqqnbig
Posts: 66
Joined: Fri, 12. Jul 13, 14:08

Post by Gqqnbig » Sun, 20. Sep 15, 03:17

I didn't find subtract function, which in my opinion is very basic. Are you able to add it?

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13300
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid » Mon, 23. Nov 15, 14:48

Hi Gqqnbig,

The subtraction is covered by the sign of an fpn. Just use the add function with the second fpn having sign -1. To recall the structure:

" fpn: is an array (s,m,e) of size 3 with s=+/-1 the sign, m natural number and e the exponent.
Example: The number -1/20 = -0.04 = -4E-2 has the fps rep (-1,4,-2) "

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

Post Reply

Return to “X³: Reunion - Scripts and Modding”