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

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


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

Written By
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.