Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

truncating a real to an int

Status
Not open for further replies.

woohoo

Programmer
Joined
Jun 5, 2002
Messages
11
Location
US
've got a field object that is a formula, which works great and all.

the end result is a real number and i want to just truncate it into an int. how does one do this?

thanks
 
truncate({table.number},0) Jim Broadbent
 
Like the man said.

Or right click on the field, Number tab, Customize buttom, set Decimals to 1.

Naith
 
D'oh.

I just remembered that you can't set get rid of your decimals without implicitly rounding up the integer.

Do what Ngolem said.

Sorry about the misadvice.

Naith
 
thanks for the help; to extend on that a bit, how does one set it so that the trailing zero's aren't shown?
 
bags! i look away for a second and the advice i need is already there

thanks ya'll
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top