Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations pierreick on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to seperate a number with a decimal point?

Status
Not open for further replies.

iamnee

Electrical
May 22, 2002
3
Float_point := 21.739

Quotient = 21

remainder = .739

How can I have Mathcad seperate this number for me?

I enter Imin and Mathcad will give me two numbers.

Imin := 1.087*10-3
PWM := Imin/50 Imin = 21.739

Q :=
R :=
 
Replies continue below

Recommended for you

Q:= trunc(Imin) and R:=Imin-Q

See insert - function - truncation and roundoff - trunc

 
If you read the help file you will see the example of how to do this, e.g.

round(1.723) = 1

mantissa(x):=x-floor(x)

mantissa(1.723)=0.723
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor