A Revised Rational Proposal

J

John Roth

Mike Meyer said:
I don't think so, as I don't see it coming up often enough to warrant
implementing. However, Rational("x" / "y") will be an acceptable
string format as fallout from accepting floating point string
representations.

How would that work? I though the divide would be
evaluated before the function call, resulting in an exception
(strings don't implement the / operator).

John Roth
 
M

Mike Meyer

John Roth said:
How would that work? I though the divide would be
evaluated before the function call, resulting in an exception
(strings don't implement the / operator).

That was a mistake on my part. It would be Rational("x", "y").

<mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top