Skip to content

Commit 603b420

Browse files
authored
Update Readme.md
1 parent e4e27cb commit 603b420

File tree

1 file changed

+37
-23
lines changed

1 file changed

+37
-23
lines changed

Chapter 7/Readme.md

Lines changed: 37 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -443,16 +443,53 @@ FROM purchase;
443443

444444

445445

446+
### Mathematical Functions
446447

448+
[Click here](https://dev.mysql.com/doc/refman/8.0/en/mathematical-functions.html) to get the list of all MySQL mathematical functions.
447449

450+
| Name| Description |
451+
|-----------|-------------|
452+
| ABS()| Return the absolute value |
453+
| TRUNCATE()| Truncate to specified number of decimal places |
454+
| CEIL()| Returns the smallest integer value that is greater than or equal to the number. |
455+
| CEILING()| Returns the smallest integer value that is greater than or equal to the number. |
456+
| FLOOR()| Returns the largest integer value that is equal to or less than the number. |
457+
| POW()| Return the argument raised to the specified power |
458+
| POWER()| Return the argument raised to the specified power |
459+
| SQRT()| Return the square root of the argument |
460+
| MOD()| Return the remainder |
461+
| PI()| Return the value of pi |
462+
| DEGREES()| Convert radians to degrees |
463+
| RADIANS()| Return argument converted to radians |
464+
| EXP()| Returns e raised to the power of number (or enumber). |
465+
| SIN()| Return the sine of the argument |
466+
| COS()| Return the cosine |
467+
| TAN()| Return the tangent of the argument |
468+
| LOG10()| Return the base-10 logarithm of the argument |
469+
| RAND()| Return a random floating-point value |
448470

449471

472+
<br>
450473

451474

475+
#### ABS Function
452476

477+
The ABS() function returns the absolute (positive) value of a number.
453478

479+
**Syntax**
454480

481+
```sql
482+
ABS(number)
483+
```
455484

485+
**Example:** Below example returns the absolute value 273.15
486+
487+
```sql
488+
SELECT ABS(−273.15);
489+
```
490+
491+
492+
<br>
456493

457494

458495

@@ -470,31 +507,8 @@ FROM purchase;
470507

471508

472509

473-
### Mathematical Functions
474510

475-
[Click here](https://dev.mysql.com/doc/refman/8.0/en/mathematical-functions.html) to get the list of all MySQL mathematical functions.
476511

477-
| Name| Description |
478-
|-----------|-------------|
479-
| ABS()| Return the absolute value |
480-
| TRUNCATE()| Truncate to specified number of decimal places |
481-
| CEIL()| Returns the smallest integer value that is greater than or equal to the number. |
482-
| CEILING()| Returns the smallest integer value that is greater than or equal to the number. |
483-
| FLOOR()| Returns the largest integer value that is equal to or less than the number. |
484-
| POW()| Return the argument raised to the specified power |
485-
| POWER()| Return the argument raised to the specified power |
486-
| SQRT()| Return the square root of the argument |
487-
| MOD()| Return the remainder |
488-
| PI()| Return the value of pi |
489-
| DEGREES()| Convert radians to degrees |
490-
| RADIANS()| Return argument converted to radians |
491-
| EXP()| Returns e raised to the power of number (or enumber). |
492-
| SIN()| Return the sine of the argument |
493-
| COS()| Return the cosine |
494-
| TAN()| Return the tangent of the argument |
495-
| LOG10()| Return the base-10 logarithm of the argument |
496-
| RAND()| Return a random floating-point value |
497512

498513

499-
<br>
500514

0 commit comments

Comments
 (0)