Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,906 questions

51,838 answers

573 users

How to cast to float in Python

1 Answer

0 votes
x = float(25)
y = float(3.14)
z = float("79") 
a = float("983.27") 

print(x);
print(y);
print(z);
print(a);



'''
run:
 
25.0
3.14
79.0
983.27
 
'''

 



answered Sep 9, 2021 by avibootz

Related questions

1 answer 137 views
1 answer 91 views
91 views asked Jan 10, 2024 by avibootz
1 answer 89 views
89 views asked Jun 27, 2022 by avibootz
1 answer 208 views
208 views asked Oct 17, 2020 by avibootz
1 answer 190 views
1 answer 179 views
179 views asked Apr 5, 2019 by avibootz
1 answer 105 views
105 views asked Sep 9, 2021 by avibootz
...