【技巧】-NO.123.數據處理技巧
阿新 • • 發佈:2018-10-22
數據處理 println www http bsp master red iter gre
Style:Mac
Series:Java
Since:2018-09-10
End:2018-09-10
Total Hours:1
Degree Of Diffculty:5
Degree Of Mastery:5
Practical Level:5
Desired Goal:5
Archieve Goal:3
Gerneral Evaluation:3
Writer:kingdelee
Related Links:
http://www.cnblogs.com/kingdelee/
1.判斷數值是否為整數(即是否包含小數位)
// 1.判斷數值是否為整數(是否包含小數位) double a = 12d; double b = 12.1d; System.out.println(a % 1); // 0.0 System.out.println(b % 1); // 0.099 System.out.println(a % 1 == 0); // true
【技巧】-NO.123.數據處理技巧