i am a begner in vb programmeHow can i clear the decimal point in a vb program?
You can use the 'Clng()' function in VB. Example:
value = Clng(5.5)
More free VB source codes here: http://smartcoder.awardspace.com
KaBalweg
http://smartcoder.awardspace.comHow can i clear the decimal point in a vb program?
Use the ctype function as follows
integerValue = ctype(realvalue, Integer)
This will convert the real/float/double value to an integer thus removing the decimal point. It will not round the value up or down. for exampl if your real value is 5.6, by converting it to an integer, you will get the value 5.
Hope this helps.
Check for Round function in VB
and also check ceil() function for Decimal Point clear
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment