D
DAve
Hi -
Anyone seen this? Using the 'Decimal' type to do calculations in the
Compact Framework, some calculations are going wrong ...
For instance, running the following three lines should give "60" but instead
gives "41.43..." !!
Dim k as Integer = 60
Dim d as Decimal = 1 / New Decimal(k)
MessageBox.Show(1 / d)
Many other values for 'k' also seem to go wrong (eg 60, 70, 77, 91, 92,
.....).
Any help greatly appreciated!
Anyone seen this? Using the 'Decimal' type to do calculations in the
Compact Framework, some calculations are going wrong ...
For instance, running the following three lines should give "60" but instead
gives "41.43..." !!
Dim k as Integer = 60
Dim d as Decimal = 1 / New Decimal(k)
MessageBox.Show(1 / d)
Many other values for 'k' also seem to go wrong (eg 60, 70, 77, 91, 92,
.....).
Any help greatly appreciated!