MySQL Forums
Forum List  »  General

MySQL, Math functions and Decimal type.
Posted by: Sergio Minervini
Date: October 10, 2019 11:40PM

Do all of the MySQL mathematics functions, as per

https://dev.mysql.com/doc/refman/8.0/en/mathematical-functions.html

work directly and successfully on numbers of type DECIMAL?

-So if I have successfully inserted into a table defined by the field

'numbers DECIMAL(6,3)', the value

123.456

and want to take

select cos(numbers) from data_table;

will this run directly, WITHOUT me having to invoke cast
to try and change types?

Options: ReplyQuote


Subject
Written By
Posted
MySQL, Math functions and Decimal type.
October 10, 2019 11:40PM


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.