Board index » delphi » Round(Value, NumberOfDecimals)
Peter Morris [Droopy eyes software]
2006-07-14 05:50:07 PM
Okay, the question is technical, but where it belongs I just don't know!
I have an Extended variable with a value something like 1.999343434, at the
moment I round it and get 2. Sometimes the value will be more like
1.4999999 in which case I'd like to see 1.5 instead of 1.
Is there a Round function which takes a second parameter indicating how many
decimal places to round to?
PS, don't you think there are just too many different Delphi groups on this
server? I often find that the most appropriate looking group has little or
Audio compression components, DIB graphics controls, ECO extensions,