Forum > Suggestions

Conversion StrToFloat


Why is it StrToFloat instead of StrToReal? the data type declared is Real
What do you prefer guys? Im just curious why follow C languange :)

The Turbo Pascal era mostly said real. In Delphi time, the *float functions appeared.

Maybe real had gotten tainted because of real48, the emulated floating point type.

So yes, historical reasons. My guess would be that the terminology came from the FPU (x87) world, not necessarily C directly.

I thought it was meant to be used alongside math unit's Float type, but apparently StrToFloat returns Extended instead, completely unrelated to math since sysutils itself doesn't use math.


[0] Message Index

Go to full version