Doing some maths I started to get odd results
I'm compiling for the firewing18 board
- Code: Select all
COnst ValueA = 3000000
Dim ValueUshort as Ushort = 3075
// Dim ValueUlong as ULong
Dim ResultUshort as Ushort
Dim ResultUlong as Ulong
' Declarations...
Sub Main()
ResultUshort = ValueA / ValueUshort
ResultUlong = ValueA / ValueUshort
End Sub
At the end for the same sum I get
ResultUshort = 16
ResultUlong = 975
For info I'm looking at the results in a VSM (ISIS)
Any ideas where its all going wrong?