Skip to main content
1-Visitor
August 2, 2018
Solved

How can eliminate the numbers after the decimal in mathcad result?

  • August 2, 2018
  • 2 replies
  • 4931 views

How can a eliminate the numbers after the decimal without rounding off it.

Please do help

 

 

Best answer by terryhendicott

Hi,

 

Also you can use the "trunc" function.

 

Terry

2 replies

21-Topaz II
August 2, 2018

Hi,

in Prime look under "Math Formatting" tab on the top ribbon.

Simply experiment with the settings that are available.

 

in Mathcad 15 settings are under "Format | Results" in the menu at top of screen

 

Cheers

Terry

24-Ruby IV
August 4, 2018

I ask 20 years MathSoft/PTC show not digits AFTER decimal point but COMMON numbers of digits in answer.

I use in Mathcad Calculation Server one function for this

See one example please

http://twt.mpei.ru/MCS/Worksheets/rbtpp/eng/tab1.xmcddigits.png


25-Diamond I
August 4, 2018

What you show is not really helpful without revealing the method how to do it, isn't it?

Here's a simply way to round a value to any number of significant digits rather than to a number of decimals. B1.png

 

But the OP had asked for something quite different, namely the possibility of cutting off the decimal places.

And the answer was already given by Terry.

Mathcad offers a function to do exactly what was asked for - "trunc".

If negative numbers should be treated differently, "floor" might be an option.

B2.png

21-Topaz II
August 4, 2018

Hi,

 

Also you can use the "trunc" function.

 

Terry

vishnut1-VisitorAuthor
1-Visitor
August 6, 2018

"trunc" worked for me, thanks a lot for the support..!! Smiley Happy