Message 1 of 17
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
If you create a Numeric parameter (mm) and type in 1348.5 and run the code below, the message box returns 3.
test = Floor((Test - 322 - 90.5 - 136) / 200) MessageBox.Show(test, "Msg")
If you remove Test from the code and type in 1348.5
test = Floor((1348.5 - 322 - 90.5 - 136) / 200) MessageBox.Show(test, "Msg")
It returns 4 which is correct.
Can someone explain why this is the case and if possible, a way to get the parameter version to return the correct answer?
Solved! Go to Solution.