Tuesday, 27 September 2016

Round, FLoor & Seal

For Rounding
static void Job1(Args _args)
{
    int i, ii;
    real r = 334.55, r2 = 334.14;
    ;

    i = decround(r, 0);
    ii = decround(r2, 0);

    // It shows 335, 334
    info(strfmt("%1, %2", i, ii));
}
****FLOOR & SEAL****
static void SealORFloorValues(Args _args)
{
AmountMst amount;
amount = 2.4;
print round(amount, 1);
pause;
}
// if value is 2.5 then it will print 3
// if value if 2.4 then it will pront 

No comments:

Post a Comment

8 Common Errors in Dual-write

502 Bad Gateway : when the target application is not ready to handle the incoming request  401 Unauthorized / 403 Forbidden: This error occ...