Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42220

[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 42220

Trending Articles