Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple and power of int and float has actual meaning #770

xp44mm opened this issue Jul 14, 2019 · 2 comments


Copy link

commented Jul 14, 2019

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

actually is:

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

This comment has been minimized.

Copy link

commented Jul 14, 2019

Might as well add int + float, float32 - int16, byte + int64, int64 ** decimal and so on.


This comment has been minimized.

Copy link

commented Jul 14, 2019

This suggestion is related #737 see my comment which propose a solution for this by using generic numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.