Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Distinguishing between Integers and Reals

Status
Not open for further replies.

SuperAl

Structural
Jul 15, 2005
4
Hi Folks,

I want to write an If statement which does one thing if a sum results in an Integer or another if the sum is a Real number.

I.e.
If A/B = Integer then C
else D

Can anyone give me a hand with the MathCAD commands/syntax?

Thanks in advance

Al
 
Replies continue below

Recommended for you

I think you want something like this...

m:= C if mod (A,B)=0
D otherwise



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor