Показать сообщение отдельно
Старый 06.07.2007, 15:52   #1  
SerAl is offline
SerAl
Участник
 
163 / 44 (2) +++
Регистрация: 24.06.2004
Адрес: г. Москва
Округление
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))?