Nov 19, 2004 #1 haneen97 Programmer Joined Dec 10, 2002 Messages 280 Location US Hi Is there a function in Crystal 8.5 that will give you the whole number when dividing by a certain number? For example if I divide 9/4, Can I put the 2 in the variable and ignore the fraction? Thanks a lot Mo
Hi Is there a function in Crystal 8.5 that will give you the whole number when dividing by a certain number? For example if I divide 9/4, Can I put the 2 in the variable and ignore the fraction? Thanks a lot Mo
Nov 19, 2004 #2 vidru Programmer Joined Jul 18, 2003 Messages 2,113 Location US You can use the Int function to only return the integer portion: Int(9/4) // will result in 2 Int(9/5) // will result in 1 -dave Upvote 0 Downvote
You can use the Int function to only return the integer portion: Int(9/4) // will result in 2 Int(9/5) // will result in 1 -dave
Nov 19, 2004 #3 kskid Technical User Joined Mar 21, 2003 Messages 1,767 Location US Try: truncate({table.field}/2) Cheers, -LW Upvote 0 Downvote
Nov 19, 2004 Thread starter #4 haneen97 Programmer Joined Dec 10, 2002 Messages 280 Location US Thank you all, Great stuff. Mo Upvote 0 Downvote