- MacKichan Software

- Technical Support Pages

- Free Trial Versions

I am learning to use definitions and formulas in SWP documents.

I need to compute, in the same document, several formulas (depending from one or more definitions) with different number of decimal places.

For example

a:=1.234

b:=3.456

I need to approximate in the same document

- ab with 2 decimal digits

- a/b with 5 decimal digits

How could I do?

Thank you very much

Michele

- Login to post comments

## Maybe this is the answer (⌊

Maybe this is the answer (⌊ ⌋=floor)

a=2.3456

b=⌊100a⌋/100

Now mark a=2.3456 and do ALT-c, d, d

Mark ⌊100a⌋/100 and choose ALT-c Evaluate Numerically

Result 2.34

## Subject to MSI explaining

Subject to MSI explaining that I'm wrong, I don't think you can do this. MuPAD does contain a function round(x,n) which rounds x to n decimal places, but I think that this will automatically be overridden by the settings in Compute -> Settings -> General.