我希望能发挥一种激动作用,如果这种愤怒超过某种价值(就我目前的情况而言是1 000人),那么我就希望对其作出某些区分,以便我最终能够恢复原始愤怒的缩略语。
For example:
1000 = 1
1001 = 1
1099 = 1
1100 = 1.1
1199 = 1.1
1200 = 1.2
10000 = 10
10099 = 10
10100 = 10.1
It s the division and rounding side of things that has been causing me problems.
给我带来上述结果的最适当方法是什么?