removed
(I did neither start nor intend this discussion.)
Discussion about floats and doubles
-
- Addict
- Posts: 4779
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Discussion about floats and doubles
Last edited by Little John on Wed Sep 18, 2013 4:03 pm, edited 3 times in total.
Re: Extended precision floating-point calculations
+1, using the native functions and especially on things like log() and sqr() accumulates to rather big deviations since they even on the 64 bit PB only uses floats.
The best preparation for tomorrow is doing your best today.
Re: Extended precision floating-point calculations
That statement is wrong. These functions use doubles when you store the results in double variables. Doubles are available since v4.00KJ67 wrote:+1, using the native functions and especially on things like log() and sqr() accumulates to rather big deviations since they even on the 64 bit PB only uses floats.
quidquid Latine dictum sit altum videtur
Re: Extended precision floating-point calculations
That is very good news and will simplify things, but the documentation header states "Result.f = Sqr(Number.f)", the much wider interpretation of "This function can handle float and double values" was something I missed.freak wrote:That statement is wrong. These functions use doubles when you store the results in double variables. Doubles are available since v4.00KJ67 wrote:+1, using the native functions and especially on things like log() and sqr() accumulates to rather big deviations since they even on the 64 bit PB only uses floats.
The best preparation for tomorrow is doing your best today.
Re: Extended precision floating-point calculations
Its on the overview page of the Math library:
Almost all these functions work with floats or doubles, i.e. numbers with the .f or .d extensions. If a function is used with a double value as input or output, it will automatically switch to double precision instead of single precision for its calculations.
quidquid Latine dictum sit altum videtur
Re: Discussion about floats and doubles
Locked due to repeated abuse of the topic editing functionality by the OP. If you can't be civilized about it then don't post at all!
quidquid Latine dictum sit altum videtur