Monday, August 14, 2017

X++ Code to Switch Sign value

static void SwitchSigns(Args _args)
{
Amount origAmount = -590.39;
Amount newAmount;

newAmount = origAmount * -1;

info (strFmt("%1 - Switched signs: %2", origAmount, newAmount));

origAmount = 243.55;

newAmount = origAmount * -1;

info (strFmt("%1 - Switched signs: %2", origAmount, newAmount));
}

No comments:

Post a Comment