F64 lib Updated.

Developed or developing a new product in PureBasic? Tell the world about it.
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Post by jack »

Yes it needs to be added, I will see if it can be added as an optional parameter to Round, the problem is that Round already has an optional parameter as destination point. :)
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

:)

BTW, just to add to your day, there is another oddball situation called bankers rounding.

This rounds .5 values to the nearest even number. So 2.5 goes down to 2.0 and 3.5 goes up to 4.0. It gives pretty accurate results if you apply it to a long list of numbers and then average them.

I think some of the heavyweight languages (delphi, maybe VB) actually use bankers rounding as their standard approach. Or used to.

Don't you love it.
@}--`--,-- A rose by any other name ..
Post Reply