Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • 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
Joined
Jul 15, 2005
Messages
4
Location
GB
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
 
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

Back
Top