Math.Truncate (Vb.net)
Math.Truncate() returns the integral part of the specified number.
Input parameters data type
Math.Truncate() function accepts double or decimal as input parameter data type.
Example
MsgBox(Math.Truncate(5.7))
Return Value
It displays 5 in the message box.
0 comments:
Post a Comment