X++:
client server static int real2int(real _realValue)
{
return any2int(_realValue);
/*
Note that this is equivalent of any2int(trunc(_realValue)) meaning that no rounding is performed
Examples:
info(strfmt("%1", real2int(123.456))); // returns 123
info(strfmt("%1", real2int(123.756))); // returns 123
info(strfmt("%1", real2int(-123.456))); // returns -123
info(strfmt("%1", real2int(-123.756))); // returns -123
*/
}
А есть функция эквивалентная any2int(trunc(_realValue))?