api: c++: js generator: fix float issue