Kotlin浮点小数转字符_格式控制

val pi = 3.14159265358979323
val s = "pi = %.2f".format(pi)

Tags:

Add a Comment

邮箱地址不会被公开。 必填项已用*标注