VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Easy Rounding Function

by Afro (6 Submissions)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

Round to X Decimal places with one line of code!

Rate Easy Rounding Function

Private Sub RoundTo_Click()
Text1 = Format(Text1,"####.00") 'To alter 
'the D.P. just add or subtract the 0's after 
'the decimal point.
End Sub

Download this snippet    Add to My Saved Code

Easy Rounding Function Comments

No comments have been posted about Easy Rounding Function. Why not be the first to post a comment about Easy Rounding Function.

Post your comment

Subject:
Message:
0/1000 characters