https://www.geecoders.com/2021/01/Number Functions.html