简体   繁体   English

如何将 float64 变量转换为字符串?

[英]How to convert a float64 variable into a string?

I try to convert my float64 variable into str with : data['Abo_str'] = data['Abo'].isnull().astype(str) But the result is False.我尝试将我的 float64 变量转换为 str : data['Abo_str'] = data['Abo'].isnull().astype(str)但结果是 False。 How can I do it ?我该怎么做 ? Thx谢谢

In which language you are implementing If you are implementing in Python.使用哪种语言实现 如果您使用 Python 实现。 The below code can be useful for you.以下代码可能对您有用。

float_value = 1.99
string_value = str(float_value)
print(string_value)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM