-
Notifications
You must be signed in to change notification settings - Fork 0
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
failed to figure out how to multiple unity number by unitless number #1
Comments
Coercion is nice in the interactive interpreter, but in my experience, in written code it leads to a heavier burden on tracing back to actual calling code to understand the effects of code within a callee, so whenever it's possible to create simplifying assumptions in the API, I prefer that. This is part of the purpose of I'd like to add a new separate layer which makes it more convenient to use I'm marking this ticket as closed because I consider the newly created tickets and this explanation to cover this issue. Let me know if I'm missing anything. |
@zooko, do you primarily use That's my primary use so far, although I would like to begin using it in applications as a library. |
Yes, I have been using it in the interpreter. |
I had a unity number stored in a variable named
T1
, and then I did this::I had expected it to multiple
T1
by the (dimensionless) 0.16 for me.Allegedly there is a way to do this in dimana, using
dimana.Dimensional('0.16)
instead ofDecimal('0.16')
. So I have several requests/suggestions:Dimensional
? That sounds wrong.Decimals
automatically toDimensionlesses
? I guess there's a risk that a user would have a number stored in aDecimal
when they intended it to be a dimensioned number, like the number of Frobs, and forcing them to explicitly putDimensionless('0.19')
would let them realize that they actually needDimensional.get_dimension('Frobs')
. But I'm skeptical—why doesDimensionless('0.19')
help them notice that any better thanDecimal('0.19')
helps them notice?The text was updated successfully, but these errors were encountered: