Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21266

[RESOLVED] How to round up a Single variable

$
0
0
In a timer loop a variable dimensioned As Single gets a value every time the timer event is entered. The value will be like this:

0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1.0
1.1
etc etc

every time the decimal part is .5 I want to round up to the next whole number value

Viewing all articles
Browse latest Browse all 21266

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>