File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
exercises/concept/pizza-pi/.docs Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 66
77## 1. A Dough Ratio
88
9- - PHP has [ a built-in constant] [ pi-constant ] for pi (π)
10- - When it comes to rounding, PHP provides [ numeric functions] [ numeric-functions ]
9+ - You can solve this task using basic arithmetic operators for addition and multiplication.
1110
1211## 2. A Splash of Sauce
1312
14- - When rounding up, PHP provides a [ numeric function] [ numeric-functions ] .
13+ - To ensure a whole number of cans, you'll need to round up.
14+ - PHP provides [ numeric functions] [ numeric-functions ] that can help.
1515
1616## 3. Some Cheese, Please
1717
18- - For cubing a number, there is a [ built-in exponentiation function] [ arithmetic-operations ] .
18+ - You can cube a number using the [ exponentiation operator] [ arithmetic-operations ] .
19+ - To ensure a whole number of pizzas, you’ll need to round down.
20+ - PHP provides [ numeric functions] [ numeric-functions ] that can help.
21+ - PHP has a [ built-in constant] [ pi-constant ] for pi (π).
1922
2023## 4. A Fair Share
2124
22- - This part requires using a function you may not have come across before, the [ modulo
23- function] [ arithmetic-operations ] (` % ` ).
24- This function gives you the remainder of the division between two numbers.
25+ - Use the [ modulo operator] [ arithmetic-operations ] (` % ` ) to get the remainder after division.
2526
2627[ arithmetic-operations ] : https://www.php.net/manual/en/language.operators.arithmetic.php
2728[ pi-constant ] : https://www.php.net/manual/en/function.pi.php
You can’t perform that action at this time.
0 commit comments