SMath Studio Forum
»
SMath Studio
»
Questions
»
percent symbol in math equations
Rank: Newbie
Groups: Registered
Joined: 23/01/2017(UTC) Posts: 5
|
Greetings, I am curious about the operation of the percent "%" symbol.
If I add, for example, 1+100%=..., it gives the warning "units don't match". I would expect it to return either 2 or 200%.
I only installed the program a few days ago, so maybe I am misunderstanding the operation of the % symbol. The program is very nice - just trying to figure out the details for input, etc.
Thanks!
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,980 Was thanked: 1120 time(s) in 718 post(s)
|
Can't reproduce that with 0.98.6179. Make sure the % symbol is in blue italic (recognized as a unit). Type 1+100% TAB = The tabulator key is used to confirm the selection in the dynamic assistant. In SMath Studio % is nothing else than a representation of the number 0.01 |
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
Type X:=1.23456789*[in the place holder: insert % from drop down unit menu] check result X=0.0123456789
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 23/01/2017(UTC) Posts: 5
|
Thanks for the replies.
I believe my problem was replacing "Metric" with "Imperial" in the settings.inf file (OutputUnitsSystem variable). I was trying to force the output units to be Imperial, which was working, but apparently it has some effect on the use of the % symbol.
Anyway, I think changing to Imperial in the .inf is not technically a supported or approved method. So I changed my OutputUnitsSystem back to Metric and it works fine.
Thanks again.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 11/01/2018(UTC) Posts: 131 Location: Wisconsin Was thanked: 58 time(s) in 37 post(s)
|
Greetings! To the best of my knowledge, you should be able to redefine the 「%」 from 「dimensionless」 to a 「number」 of value: 0.01; keypress the following at the top of your worksheet: (NOTE: I currently have the settings.inf file modified to Imperial units 「OutputUnitsSystem=Imperial」 and % appears to behave as expected when it is redefined to 0.01) -Kenny Lemens, P.E. Edited by user 20 September 2022 21:24:26(UTC)
| Reason: Provided better clarity on "Note" (changes in darkred) |
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
Originally Posted by: RickH I would expect it to return either 2 or 200%.
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
percent symbol in math equations
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.