Rounding Float Decimal Places
| | |
| --- | --- |
| | approximateFloat(Value : float , decimalplace : float): float = |
| | factor := Pow(10.0,decimalplace) |
| | if(Rounded := Int[Value*factor]*1.0/factor): |
| | return Rounded |
| | else: |
| | return 0.0 |