cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Get % in Answer

ppal
17-Peridot

Get % in Answer

ppal_1-1722898646565.png

 

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:ppal)

Simply implementing the percentage as a unit factor, as we were used to, seemed to have been too simple, comfortable and intuitive for PTC.
Its a number format option in Prime.

Werner_E_2-1722901713514.png

 

In Mathcad when you typed % you got a predefined constant (0.01) which was then used as a factor when defining a variable and so it also could be used in the unit placeholder.

When we type % in Prime it looks like we get a predefined function in postfix notation which multiplies its argument by 0.01, but being a function it can't be used in the unit placeholder.

 

You could define % as a constant but you would have to use the trick with the "" to be able to create % as a variable name and therefore you still would not be able to just type % in the unit placeholder, you would have to copy the created variable name which is even more hassle than to use the  format menu.

Werner_E_0-1722902227001.png

There is also a difference in appearance when using the latter method - there is a larger space between the number and the %  character because of the hidden implicit multiplication character in between.  Sometimes this may be preferred.

 

 

View solution in original post

2 REPLIES 2
Werner_E
25-Diamond I
(To:ppal)

Simply implementing the percentage as a unit factor, as we were used to, seemed to have been too simple, comfortable and intuitive for PTC.
Its a number format option in Prime.

Werner_E_2-1722901713514.png

 

In Mathcad when you typed % you got a predefined constant (0.01) which was then used as a factor when defining a variable and so it also could be used in the unit placeholder.

When we type % in Prime it looks like we get a predefined function in postfix notation which multiplies its argument by 0.01, but being a function it can't be used in the unit placeholder.

 

You could define % as a constant but you would have to use the trick with the "" to be able to create % as a variable name and therefore you still would not be able to just type % in the unit placeholder, you would have to copy the created variable name which is even more hassle than to use the  format menu.

Werner_E_0-1722902227001.png

There is also a difference in appearance when using the latter method - there is a larger space between the number and the %  character because of the hidden implicit multiplication character in between.  Sometimes this may be preferred.

 

 

Raiko
17-Peridot
(To:Werner_E)

"Simply implementing the percentage as a unit factor, as we were used to, seemed to have been too simple, comfortable and intuitive for PTC."

 

Brilliant!

Announcements

Top Tags