Percentage function

Percentage function - Messages

#1 Posted: 2/6/2009 5:30:50 PM
sleschke

sleschke

0 likes in 13 posts.

Group: User

Hi,

I was a bit suprised about the way the percentage function works.
It would look so much nicer if the percentage sign '%' would be used as postfix operator
(like the factorial operator "!").

I know that this will not always be an adequate replacement in a formula,
but for defining constants it would be great.
Maybe when you start implementing physical units you can treat percentage as a unit.
#2 Posted: 6/27/2012 5:37:57 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Hello,

I support this proposal.

Wrote

Hi,

I was a bit suprised about the way the percentage function works.
It would look so much nicer if the percentage sign '%' would be used as postfix operator
(like the factorial operator "!").

I know that this will not always be an adequate replacement in a formula,
but for defining constants it would be great.
Maybe when you start implementing physical units you can treat percentage as a unit.



What can be done: (unfortunately [MATH lan=eng]'Prozent:0.01[/MATH] does not work)

'Prozent:0.01

2*'Prozent=0.02@#

{2*'mm}/'m=0.2@'Prozent

Using the % sign would be much more intuitive for the user. It is easy to write this on paper, the letter is easy to type, thus why not use it?

I have in mind the usage for mechanical engineering applications, e.g. for strain. Here even the per-thousand symbol would be welcome.

I tried to extend the units definitions (Units.xml under Entries)





This failed, just as the attempt to define a unit '% interactively fails. First obstacle is the binding of the %-key to the plus/minus-operator. Second obstacle is that when editing a unit name string the GUI doesn't even accept %-characters from the clipboard.

Best regards, Martin Kraska




Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Peter 6/28/2012 12:41:00 AM
  • New Posts New Posts
  • No New Posts No New Posts