1018: 保留小数点后两位小数
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:61
Solved:40
Description
输入一个实数,输出该数并保留小数点后两位小数。
Input
3.1414926
Output
3.14
Sample Input Copy
12.5678
Sample Output Copy
12.57
HINT
输出小数点后两位小数的格式。
print(format(a,'.2f'))
print(format(a,'.2f'))