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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

How to format units?

JefferyGu
1-Visitor

How to format units?

Hi Richard,

There is an expression in my calculation which is shown as following:

1.bmp

I want to format the result of P as the following pattern:

2.bmp

So I format the result as following steps:

  1. Select “Result” from “Format” menu.
  2. Select “Number Format” tab
  3. Select “Decimal” item from “Format” list
  4. Change the “Number of Decimal” from “3” to “2”
  5. Click on “Show trailing zeros”
  6. Select “Unit Display” tab
  7. Click on “Format units”
  8. Click on “Simplify units when possible”

But the result is shown as following:

3.bmp

Is it possible to remove the tailing zeros from “2.00” in the units? If possible, can you tell me the steps in detail?

Best regards.

Jeffery

ACCEPTED SOLUTION

Accepted Solutions

Hello!

You do not need to choose "Show trailing zeros".

Format.gif

View solution in original post

16 REPLIES 16

I don't see your problem.

I have just defined P and manually type the units in and got the following.

Mike

Hello!

You do not need to choose "Show trailing zeros".

Format.gif

Hi VladimirN.,

If the number before the unit is "0.4012", and I still want to keep 2 "Number of decimal", the result is shown as following:

But the result I want to get is shown as following:

4.bmp

Is there any way to keep the "0" after the number "0.4".

5.bmp

Best regards.

Jeffery.

In this case, use those units, which are offered by Mathcad.

Unit_Pressure.jpg

Sorry.

Is P a pressure?

If yes - the unit of pressure is kgf/mm^2.

kg/mm^2 is a strange unit

Can you point me one physical quantity with this unit!

Hi Valery,

Thank you. I think there is no problem with the units.

Thank you. I think there is no problem with the units.

To be honest I have to agree with Valery here. I have never seen kg/mm^2 used before. I would use kgf/mm^2.

Mike

Jeffery Gu wrote:

Hi Valery,

Thank you. I think there is no problem with the units.

OK!

But for me it is very interesting what physical quantity has this unit

I know linear density with unit kg/m, density with unit kg/m^3.

May be kg/m^2 is an unit of square density!?

Hi Mike,

Have you kept the "Show trailing zeros” checked?

Jeffery

wayne
12-Amethyst
(To:JefferyGu)

Jeffery,

I looked at your test sheet, under Tools>Worksheet Options> Unit System, you have checked Custom units, based on SI,
Just curious why?

Also, if you look under Insert>Unit you will see a list of available units in the system you choose, in this case SI (even though Custom was selected)

For example, I would use MPa or KPa, instead of kgf/mm^2

Also, most users (I believe) like to check Format>Result>Unit Display> Format units

No, I kept the box unchecked.

Mike

Mike,

Not important, but just curious, when the Format Units Box is checked, you get the fractional form, like m/s^2

Unchecked you get m*s^-2.

I clarify the above because I think Help has it reversed.

So, when you want the units displayed in the final document, which format do you use?

If you want the m/s^2 format, but your default is unformatted, then you must re-type the unit, an extra step.

If I have complicated set of units, the unformatted is harder to resolve, at a glance, than the formatted?

And lastly, do you enter the units in the result as m*s^-2 or as m/s^2?

Just curious,

Not important, but just curious, when the Format Units Box is checked, you get the fractional form, like m/s^2

Unchecked you get m*s^-2.

I clarify the above because I think Help has it reversed.

I can't see in the help where they talk about m*s^-2 sorry Wayne.

So, when you want the units displayed in the final document, which format do you use?

I always bring the units up to the top line - N*mm^-2, m*s^-2,m kg*m^-1. This is standard practice for my calcs.

If you want the m/s^2 format, but your default is unformatted, then you must re-type the unit, an extra step.

If I have complicated set of units, the unformatted is harder to resolve, at a glance, than the formatted?

I did a little research a while back and found a quick way to insert units (the only way except typing I think), but it requires another program running in the background - AutoHotkey. I like it and it saves a bit of time and effort

Mike

Mike,

Under "Simplifying Displayed Units"

The directions for unformating are correct, but the statment in the simple example is reversed, the last result is unformated, not the formated result.

Trivial I know, but what else have I to do?

PS

kg/m^2 would be the unit mass of a plate, for example in the calculations for vibration of a plate.

Hi friends,

Thanks and regards.

Jeffery

Jeffery,

Recently, Valery Ochkov has shown a solution of a problem, described earlier, here:

http://communities.ptc.com/docs/DOC-2211

Announcements

Top Tags