阅读背景:

将浮点数转换为字符串而不进行四舍五入

来源:互联网 

I'm making a program that, for reasons not needed to be explained, requires a float to be converted into a string to be counted with len(). However, str(float(x)) results in x being rounded when converted to a string, which throws the entire thing off. Does anyone know of a fix for it? Here's the code being used if you want to know:I'm making a program that, for reasons not need




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: