Jul 1, 2008 #1 jaggar Programmer Jan 23, 2003 21 US How do you code a variable which have dollars and cents amount in SQL to round up to the nearest dollar? Thanks...
How do you code a variable which have dollars and cents amount in SQL to round up to the nearest dollar? Thanks...
Jul 1, 2008 #2 Crowley16 Technical User Jan 21, 2004 6,931 GB select ceiling(5.2) -------------------- Procrastinate Now! Upvote 0 Downvote
Jul 1, 2008 #3 bborissov Programmer May 3, 2005 5,167 BG What means nearest? What you wantfrom this: [tt] 6.43 -> 6 or 7 6.51 -> 6 or 7 [/tt] Check these functions in BOL: ROUND() CEILING() FLOOR() and decide what you want. Borislav Borissov VFP9 SP2, SQL Server 2000/2005. Microsoft MVP VFP Upvote 0 Downvote
What means nearest? What you wantfrom this: [tt] 6.43 -> 6 or 7 6.51 -> 6 or 7 [/tt] Check these functions in BOL: ROUND() CEILING() FLOOR() and decide what you want. Borislav Borissov VFP9 SP2, SQL Server 2000/2005. Microsoft MVP VFP