Hi,
Objective: Extract the integer part of the number without rounding off and put it into a string
i.e. 987.999 = 987
method:problem: My code works when the value is less than 16 digits long. But when it is longer than 16 digits (including decimal pionts) it will round the value off, instead of just clipping off the decimal pionts.Code:dim temp as string temp = CDec(Fix(textbox1.Text))
Can anyone tell me why that is? Also, if there is another more effecient method to extract the whole number?
Thanks!




Reply With Quote