[Gambas-user] Round matematical does not work as xpected

Tobias Boege taboege at ...626...
Thu May 19 16:42:23 CEST 2016


On Thu, 19 May 2016, PICCORO McKAY Lenz wrote:
> using Round as noted in wiki, does not works as spected
> 
> if i round Round 2.536 must get 2.54 but only got 2.53 if i specify '2 (for
> 2 decimals)
> 
> why or better, how can i made that i want! (2.536 goest to 2.54)
> 
> i must work with decimals part only by myselft (i thnk about it)
> 

Can't reproduce:

  $ gbx3 -e 'Round(2.536, -2)'
  2.54

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk




More information about the User mailing list