|
![](/i/fill.gif) |
On 29 Aug 2000 11:56:31 -0400, Warp wrote:
>Chris Huff <chr### [at] mac com> wrote:
>: And the only benefit would be lower memory usage, which is
>: really only relevant if you are storing huge arrays.
>
> It's not the only benefit. The other benefit would be precision. If you
>use very large integers, floats may lose information.
> This may be important when making mathematical operations. For example:
>
>25^7/1953125 ( = 3125 )
>
>may give a different result if we use integers or if we use floats.
Indeed. If you compute this with standard 32 bit integer arithmetic, the
result is 925. Probably not what you had in mind.
hp
--
_ | Peter J. Holzer | Nicht an Tueren mangelt es,
|_|_) | Sysadmin WSR | sondern an der Einrichtung (aka Content).
| | | hjp### [at] wsr ac at | -- Ale### [at] univie ac at
__/ | http://www.hjp.at/ | zum Thema Portale in at.linux
Post a reply to this message
|
![](/i/fill.gif) |