Home >Database >Mysql Tutorial >Mysql中的decimal是什么类型_MySQL

Mysql中的decimal是什么类型_MySQL

WBOY
WBOYOriginal
2016-06-01 13:12:111720browse
它是定义十进制小数,精度高,而且没有误差。和浮点数相差很大。浮点数是直接把小数转化为二进制,小数转化为二进制是有误差的,也就是说不能精确表示。decimal则可以没有任何误差的表示小数
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn