Guest Yukon Cornelous Posted March 4, 2005 Share Posted March 4, 2005 Whether it is 90.1 or 90.9 , I want to always roundup. But if 90.0 leave it alone Any Ideas? Link to comment Share on other sites More sharing options...
diesoft Posted March 4, 2005 Share Posted March 4, 2005 Code: Case( Mod(yourNumber, 1), Int(yourNumber) + 1) Should do the job. Although the following may be more explicit when looking at it later, but the extra syntax is not needed: Code: Case( Mod(yourNumber, 1) > 0, Int(yourNumber) + 1, yourNumber) Link to comment Share on other sites More sharing options...
comment Posted March 4, 2005 Share Posted March 4, 2005 Int( InputNumber) + (Mod(InputNumber, 1) > 0) Link to comment Share on other sites More sharing options...
Guest Yukon Cornelous Posted March 4, 2005 Share Posted March 4, 2005 Thanks Comment works good. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.