ooops - sorry
The above is wrong - int will generally (?) truncate.
Perhaps it would be best to use the "round" function loaded with PGstandard
Years ago Fortran IV (with WATFIV) we rounded with int(x+0.5)
Then a new version was installed and the rounding was done automatically.
I thought this to be a very progressive at the time; I guess perl has regressed.
many regards
hp
Re: answer checker for finance math problems to accept and display 2 decimal digits
by Hedley Pinsent -
Number of replies: 0