refactor number helper
Merge pull request #10332 from vipulnsward/number_helper

refactor number helper