Search

Download this Manual
PDF (US Ltr) - 35.1Mb
PDF (A4) - 35.2Mb
Man Pages (TGZ) - 256.4Kb
Man Pages (Zip) - 361.2Kb
Info (Gzip) - 3.4Mb
Info (Zip) - 3.4Mb


Displaying 1 to 10 of 71 total results
https://dev.mysql.com/doc/refman/5.7/en/precision-math-decimal-characteristics.html
This section discusses the characteristics of the DECIMAL data type (and its synonyms), with particular regard to the following topics: Maximum number of digits Storage format Storage requirements The nonstandard MySQL extension to the upper range ...The ranges of values for the arguments are as follows: M is the maximum number of digits (the ...
https://dev.mysql.com/doc/refman/5.7/en/fixed-point-types.html
The DECIMAL and NUMERIC types store exact numeric data values. In MySQL, NUMERIC is implemented as DECIMAL, so the following remarks about DECIMAL apply equally to NUMERIC. In a DECIMAL column declaration, the precision and scale can be (and ...
https://dev.mysql.com/doc/refman/5.7/en/numeric-type-syntax.html
M is the total number of digits (the precision) and D is the number of digits after the decimal point (the scale). The decimal point and (for negative numbers) the - sign are not counted in M. If D is 0, values have no decimal point or fractional ...
https://dev.mysql.com/doc/refman/5.7/en/mathematical-functions.html
FORMAT(X,D) Formats the number X to a format like '#,###,###.##', rounded to D decimal places, and returns the result as a string. HEX(N_or_S) This function can be used to obtain a hexadecimal representation of a decimal number or a string; the ...
https://dev.mysql.com/doc/refman/5.7/en/precision-math-examples.html
Rounding for exact-value columns (DECIMAL and integer) and exact-valued numbers uses the “round half away from zero” rule. Consider these statements: mysql> CREATE TABLE t (i INT, d DECIMAL, f FLOAT); mysql> INSERT INTO t VALUES(1,1,1); mysql> ... This section provides some examples that show precision math query results in ...
https://dev.mysql.com/doc/refman/5.7/en/precision-math-expressions.html
In strict SQL mode, for INSERT into a column with an exact data type (DECIMAL or integer), a number is inserted with its exact value if it is within the column range. If any exact value contains a fractional part (a value following the decimal ...
https://dev.mysql.com/doc/refman/5.7/en/type-conversion.html
Hexadecimal values are treated as binary strings if not compared to a number. If one of the arguments is a decimal value, comparison depends on the other argument. The arguments are compared as decimal values if the other argument is a decimal or ...
https://dev.mysql.com/doc/refman/5.7/en/replication-features-differing-tables.html
Between any of the decimal types DECIMAL, FLOAT, DOUBLE, and NUMERIC. A conversion from DECIMAL(M,D) to DECIMAL(M',D') where D' >= D and (M'-D') >= (M-D) is non-lossy; for any case where M' < M, D' < D, or both, only a lossy conversion can be made.
https://dev.mysql.com/doc/refman/5.7/en/arithmetic-functions.html
For example, the result of the expression 5.05 / 0.014 has a scale of six decimal places (360.714286). Hence, (14620 / 9432456) / (24250 / 9432456), resolves first to (0.0014) / (0.0026), with the final result having 8 decimal places (0.60288653).
https://dev.mysql.com/doc/refman/5.7/en/string-functions.html
If CHAR() is invoked from within the mysql client, binary strings display using hexadecimal notation, depending on the value of the --binary-as-hex. mysql> SELECT FIND_IN_SET('b','a,b,c,d'); -> 2 FORMAT(X,D[,locale]) Formats the number X to a format ...For functions that operate on string positions, the first position is ...
Displaying 1 to 10 of 71 total results