Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
multiple and power of int and float has actual meaning #770
int multiple float or float multiple int has actual meaning in real world. for example, there is 9 bottle of cola in a box, every a bottle has 2.5L cola, how many Liters are the total cola in a box?
let count = 9 let bottle = 2.5 let total = 9*2.5 let total = 2.5*9
another has actual meaning is pow, for example, several number of float number multiple:
let res:float= 2.5**3
let res = 2.5*2.5*2.5
when float divide int has actually meaning, for example, Mother is sharing the cola (2.5L) among the children(2 p).
let every = 2.5 / 2