Sage 100

 View Only
  • 1.  2015 Advanced. VI job. I have a temp numeric fie

    Posted 01-11-2018 05:06
    2015 Advanced. VI job. I have a temp numeric field that I want to limit to 2 decimal places. What is the syntax for a numeric mask? This is the formula I believe should work yet it generates an error 20 (syntax error). ({PR.DATAENT.HOURS_RECT_AMT}*{PR.DATAENT.RATE}):""#,###.00


  • 2.  RE: 2015 Advanced. VI job. I have a temp numeric fie

    Posted 01-11-2018 05:10
    prc({PR.DATAENT.HOURS_RECT_AMT}*{PR.DATAENT.RATE},2)


  • 3.  RE: 2015 Advanced. VI job. I have a temp numeric fie

    Posted 01-11-2018 05:23
    Thanks Beth. What's the PRC directive? Percent?


  • 4.  RE: 2015 Advanced. VI job. I have a temp numeric fie

    Posted 01-11-2018 05:27
    I found it. PRC is precision. Worked like a charm. Thanks a million.


  • 5.  RE: 2015 Advanced. VI job. I have a temp numeric fie

    Posted 01-11-2018 05:28
    Yay!


  • 6.  RE: 2015 Advanced. VI job. I have a temp numeric fie

    Posted 01-11-2018 08:31
    Or Precision Rounding Calculation. You choose. A great resource for those that have not found it is http://manual.pvxplus.com/. Go to Language Reference - System Functions. Your VI Functions will thank you.


  • 7.  RE: 2015 Advanced. VI job. I have a temp numeric fie

    Posted 01-11-2018 09:08
    Yes, the dreaded PR VI import without a PRC will indeed cause a massive PITA downstream


  • 8.  RE: 2015 Advanced. VI job. I have a temp numeric fie

    Posted 01-11-2018 09:14
      |   view attached
    I know the manual well. Thats where the mask directive that didn't work in my vi job is documented.