use float instead for create point object
Merge pull request #4141 from Dhilan007/m_c_jsb

[ci skip]use float instead for create point object