如何检查数字是浮点数还是整数? - How do I check that a number is float or integer?

问题:

How to find that a number is float or integer ? 如何找到数字为floatinteger ?

1.25 --> float  
1 --> integer  
0 --> integer  
0.25 --> float

解决方案:

参考一: https://stackoom.com/question/GIsT/如何检查数字是浮点数还是整数
参考二: https://oldbug.net/q/GIsT/How-do-I-check-that-a-number-is-float-or-integer

推荐:萍乡SEO(优化推广)

猜你喜欢

转载自www.cnblogs.com/vwvwvwgwgvervae/p/12815702.html