Jan 13, 2010 #1 rajasan77 Programmer Jan 12, 2010 30 US Can any one of you tell me how to round the value down? Ex: 1.56 to be rounded as 1.00 2.32 to be rounded as 2.00
Can any one of you tell me how to round the value down? Ex: 1.56 to be rounded as 1.00 2.32 to be rounded as 2.00
Jan 13, 2010 #2 elsenorjose Technical User Oct 29, 2003 684 US Floor(1.56) if they are hard coded values or Floor{table.field} for database field Upvote 0 Downvote
Jan 15, 2010 #3 Madawc Programmer Sep 5, 2002 7,628 GB elsenorjose's solution would give you 1 and 2, but you asked for 1.00 and 2.00. You could get these by Code: ToText(Truncate({your.field}, 0), 2) I use truncate because I'm familiar with it. Floor would probably also work. Please try it and let us know. Madawc Williams (East Anglia, UK). Using Crystal 10 & 11.5 with Windows XP Upvote 0 Downvote
elsenorjose's solution would give you 1 and 2, but you asked for 1.00 and 2.00. You could get these by Code: ToText(Truncate({your.field}, 0), 2) I use truncate because I'm familiar with it. Floor would probably also work. Please try it and let us know. Madawc Williams (East Anglia, UK). Using Crystal 10 & 11.5 with Windows XP