Both return int so far (single-precision float doesn't have enough bits to represent int32 precisely).
Proof of concept, controls "ffi" module as one which requires external dependencies.