Thanks Oliver!

I found that Math.Round(float) -> int, thus I can do as follows:

float f = 1.234;

f *= 100;

f = (float)Math.round(f)/100;

.... and now f==1.23

Terje

"Oliver Wong" <ow***@castortech.com> skrev i melding

news:Wp2ff.200172$ir4.172405@edtnps90...

"Terje Barman" <terje_nospam_@_nospam_barman-hanssen.no> wrote in message

news:7N********************@telenor.com... Hi!

I have sumarized float values and I'd like to round the sum to a certain

precision. Say I have 1.234 and want it rounded to 1.23. Which method can

I use?

Math.round();

- Oliver