Nov 19, 2004 #1 haneen97 Programmer Dec 10, 2002 280 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 Jul 18, 2003 2,113 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 Mar 21, 2003 1,767 US Try: truncate({table.field}/2) Cheers, -LW Upvote 0 Downvote
Nov 19, 2004 Thread starter #4 haneen97 Programmer Dec 10, 2002 280 US Thank you all, Great stuff. Mo Upvote 0 Downvote