Re: calculations
eli donald wrote:
> I wanna build a calculator, how difficult is this?
> Could anewbie manage?
But MySQL already has a calculator built in. Look:
mysql> select 1+1;
+-----+
| 1+1 |
+-----+
| 2 |
+-----+
1 row in set (0.08 sec)
mysql> select sin(pi()/2);
+-------------+
| sin(pi()/2) |
+-------------+
| 1 |
+-------------+
1 row in set (0.05 sec)
mysql> select sqrt(2);
+-----------------+
| sqrt(2) |
+-----------------+
| 1.4142135623731 |
+-----------------+
1 row in set (0.03 sec)
mysql>
--
felix
Please use
BBCode to format your messages in this forum.
Subject
Written By
Posted
Re: calculations
July 08, 2005 11:40AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.