Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline RickH  
#1 Posted : 23 January 2017 06:03:56(UTC)
RickH

Rank: Newbie

Groups: Registered
Joined: 23/01/2017(UTC)
Posts: 5
United States

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!

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline mkraska  
#2 Posted : 23 January 2017 10:19:10(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
Can't reproduce that with 0.98.6179.

prozent.PNG

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
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Jean Giraud  
#3 Posted : 23 January 2017 15:50:58(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

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
Offline RickH  
#4 Posted : 23 January 2017 20:52:57(UTC)
RickH

Rank: Newbie

Groups: Registered
Joined: 23/01/2017(UTC)
Posts: 5
United States

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.
Offline Kenny Lemens  
#5 Posted : 29 March 2022 20:03:05(UTC)
Kenny Lemens


Rank: Advanced Member

Groups: Registered
Joined: 11/01/2018(UTC)
Posts: 131
Man
United States
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:
Code:
'%:1/100



(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)
[SMath]percentSymbol_MathEquations.jpg

-Kenny Lemens, P.E.

Edited by user 20 September 2022 21:24:26(UTC)  | Reason: Provided better clarity on "Note" (changes in darkred)

"No matter where you go, there you are." -Buckaroo Banzai

Hotkeys: https://en.smath.com/for...rce.ashx?a=45771&b=2
Offline Jean Giraud  
#6 Posted : 30 March 2022 02:33:12(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: RickH Go to Quoted Post
I would expect it to return either 2 or 200%.


Percent.PNG
Users browsing this topic
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.