Is there a function that maps an integer X to 0.X?

后端 未结 0 1022
长发绾君心
长发绾君心 2020-11-29 04:41

I am trying to come up with a function that maps an integer X to the decimal 0.X.

Examples:

  • 4 -> 0.4
  • 65 -> 0.65
  • 1584 -> 0.1584
相关标签:
回答
  • 消灭零回复
提交回复
热议问题