Magic User Group

Magic Wiki-Wakka : RoundUpNumbers

HomePage :: CATEGORIES | Index :: Changes :: Comments :: Search :: Login/Register

How to Round up numbers


This function Rounds a number (real/integer) Up to the first higher integer, except if it is a real integer.

Examples:
23.168 becomes 24.000
26.00 stays 26.00.

Can be used with CallProg()-function


Batch Task, End Task: Yes/After
Return Value: var B
Record Main
  Select Parameter i-RealToRoundUp (Num N12.6)   (var A)
  Select Parameter o-Result        (Num N12.6)   (var B)

Record Suffix
  Update B   Exp:Round (A + 0.49999, 12, 0)



Category
CategoryHowTo

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki trunk
Page was generated in 0.0409 seconds