Aug 13, 2003 #1 mbair Programmer Aug 13, 2003 22 US I have some code that puts out a value like 1.2 or 12.7 and I only want the part before the decimal. How do I truncate it.
I have some code that puts out a value like 1.2 or 12.7 and I only want the part before the decimal. How do I truncate it.
Aug 13, 2003 #2 CajunCenturion Programmer Mar 4, 2002 11,381 US You might want to take a look at the Fix function. Good Luck -------------- As a circle of light increases so does the circumference of darkness around it. - Albert Einstein Upvote 0 Downvote
You might want to take a look at the Fix function. Good Luck -------------- As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
Aug 13, 2003 #3 mrMika Programmer Jun 17, 2003 34 CA try using the round function on the variable ie newnumber = round(VariableX,0) Upvote 0 Downvote