[Tarantool-patches] [PATCH 2/2] Add IsWhole method for checking the fractional part of a number

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Thu Jun 11 20:06:50 MSK 2020


I guess you rather need name IsInt. 'Whole' has a different
meaning.

Why do you need it, btw? Why decNumberToInt64() and decNumberToUInt64()
are not enough? The only usecase for this new function I can
imagine is an attempt to shrink a decimal value into a normal integer.
Which are either int64_t or uint64_t.


More information about the Tarantool-patches mailing list