[Gambas-user] floating point and single datatype precision...

Fabien Bodard sirfabien at ...626...
Sat Aug 5 01:10:13 CEST 2006


Le Samedi 5 Août 2006 02:03, sbungay a écrit :
>     Anybody know Why it is that when a value like 22.79 is stored in a
> variable of type single, it represents it internally as 22.7900009155227?
>    Just curious.
because of the binary storing...
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your opinions on IT & business topics through brief surveys -- and earn
> cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user




More information about the User mailing list