Float adalah tipe data bilangan berkoma.
Kode pemrograman python | Tampilan saat dirun |
a = 7.3 b = 10 print('a x b =',a*b) |
a x b = 73.0 |
a = 7.3 b = 10.4 print('a x b =',a*b) |
a x b = 75.92 |
a = 7.36 b = 10.4 print('a x b =',a*b) |
a x b = 76.54400000000001 |
Referensi:
0 komentar:
Posting Komentar