Reviews for calc-extension
calc-extension by Martin Väth
Response by Martin Väth
Developer response
posted 6 years agoIt's a good idea, but it would collide with variable expansion.
For instance, 10M is equivalent to 10*M where M is the value for the variable M.
Thus, you can get what you want by defining e.g. Gi=1024**3:
Then 10Gi indeed means 10*1024**3.
I thought a bit about pre-initializing the variables Ki, Mi, Gi or defining them as constant, but then I got doubts whether this is a good idea: Both would be rather confusing features for the user.
Moreover, there is really no need for k, M, or G: Since scientific notation can be used, you can just append e3, e6, or e9 to a decimal number instead, respectively.
For instance, 10M is equivalent to 10*M where M is the value for the variable M.
Thus, you can get what you want by defining e.g. Gi=1024**3:
Then 10Gi indeed means 10*1024**3.
I thought a bit about pre-initializing the variables Ki, Mi, Gi or defining them as constant, but then I got doubts whether this is a good idea: Both would be rather confusing features for the user.
Moreover, there is really no need for k, M, or G: Since scientific notation can be used, you can just append e3, e6, or e9 to a decimal number instead, respectively.