Float type summing | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Float type summing

while the built-in fun "sum" will only work for integer, how can I sum float numbers?

3rd Feb 2017, 11:26 PM
Percy
Percy - avatar
2 Respostas
0
you can make your own function that take float parameters and return the float result of summing
3rd Feb 2017, 11:36 PM
iSlam
iSlam - avatar
0
like total = total + num, yeah that solved it, thanks
3rd Feb 2017, 11:38 PM
Percy
Percy - avatar