The function parseIntofficially accepts the string as a parameter. This string is parsed as if it were an integer, ignoring everything after the first non-numeric character. If you specify a floating point number, it will be converted to a string before parsing it.
parseInt Number, . Number - JavaScript; .
, parseInt , . Mongoid , float . , .
Update
NumberLong, 64- . new NumberLong(num) , Mongoid .
, MongoDB 1.6 , Shell MongoDB. , .