Sage 100

 View Only
  • 1.  Is there anything available in VI to force a round

    Posted 10-10-2016 18:58
    Is there anything available in VI to force a round UP to the nearest whole value, like Crystal has, vs. the normal PRC to round down/up to the nearest value?


  • 2.  RE: Is there anything available in VI to force a round

    Posted 10-10-2016 19:17
    Perhaps a calculation to turn the field into a whole number then add one??? Or just add 50 cents to the number, then do a PRC round. What number do you want returned if the original number is a whole value? If it is one and you want one, then add 49 cents before rounding.


  • 3.  RE: Is there anything available in VI to force a round

    Posted 10-10-2016 19:17
    If N is the number you can do: PRC(N+.4999, 0). This will force it to round up. In my example there are no decimal places. Adjust as you need to. The number of trailing 9s needed depends on the expected decimal precision of N to begin with. I think that works.


  • 4.  RE: Is there anything available in VI to force a round

    Posted 10-10-2016 19:35
    Thank you both! So simple and so genius!