Skip to content

Commit b323112

Browse files
committed
Add exercise to config
Fixes in about text
1 parent 08ab682 commit b323112

File tree

6 files changed

+31
-17
lines changed

6 files changed

+31
-17
lines changed

concepts/numbers/.meta/config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"authors": [
3-
"pwadsworth"
3+
"pwadsworth",
4+
"meatball133"
45
],
56
"blurb": "Basics of Haskell numeric types"
67
}

concepts/numbers/about.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fromIntegral 1
3939
-- -> 1.0
4040
```
4141

42-
To convert a `Float` to an `Int`, you can use the `round`, `floor`, or `ceiling` functions.
42+
To convert a `Float` to an `Int`, you can use the [`round`][round], [`floor`][floor], or [`ceiling`][ceiling] functions.
4343
The `round` function rounds to the nearest integer, `floor` rounds down, and `ceiling` rounds up.
4444

4545
```haskell
@@ -139,7 +139,7 @@ This is different from normal division.
139139
140140
```haskell
141141
1 `mod` 0
142-
# Exception: divide by zero
142+
-- Exception: divide by zero
143143
```
144144
~~~~
145145

@@ -181,3 +181,4 @@ It follows the order of parentheses(`()`), exponents(`**`), multiplication(`*`)
181181
[pemdas]: https://en.wikipedia.org/wiki/Order_of_operations
182182
[floor]: https://hackage.haskell.org/package/base/docs/Prelude.html#v:floor
183183
[ceiling]: https://hackage.haskell.org/package/base/docs/Prelude.html#v:ceiling
184+
[round]: https://hackage.haskell.org/package/base/docs/Prelude.html#v:round

concepts/numbers/introduction.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fromIntegral 1
3939
-- -> 1.0
4040
```
4141

42-
To convert a `Float` to an `Int`, you can use the `round`, `floor`, or `ceiling` functions.
42+
To convert a `Float` to an `Int`, you can use the [`round`][round], [`floor`][floor], or [`ceiling`][ceiling] functions.
4343
The `round` function rounds to the nearest integer, `floor` rounds down, and `ceiling` rounds up.
4444

4545
```haskell
@@ -139,7 +139,7 @@ This is different from normal division.
139139
140140
```haskell
141141
1 `mod` 0
142-
# Exception: divide by zero
142+
-- Exception: divide by zero
143143
```
144144
~~~~
145145

@@ -179,6 +179,6 @@ It follows the order of parentheses(`()`), exponents(`**`), multiplication(`*`)
179179
```
180180

181181
[pemdas]: https://en.wikipedia.org/wiki/Order_of_operations
182-
[math]: https://crystal-lang.org/reference/latest/tutorials/basics/30_math.html
183-
[int]: https://crystal-lang.org/reference/latest/syntax_and_semantics/literals/integers.html
184-
[float]: https://crystal-lang.org/reference/latest/syntax_and_semantics/literals/floats.html
182+
[floor]: https://hackage.haskell.org/package/base/docs/Prelude.html#v:floor
183+
[ceiling]: https://hackage.haskell.org/package/base/docs/Prelude.html#v:ceiling
184+
[round]: https://hackage.haskell.org/package/base/docs/Prelude.html#v:round

config.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
]
5050
},
5151
{
52-
"slug": "temperature",
53-
"name": "Temperature",
54-
"uuid": "6ed15adb-f022-4bbd-bbb3-22845deabc91",
52+
"slug": "freelancer-rates",
53+
"name": "Freelancer Rates",
54+
"uuid": "85e17e39-9506-4dc8-bed6-ecc44c840cc1",
5555
"prerequisites": [
5656
"basics"
5757
],
@@ -96,6 +96,18 @@
9696
"concepts": [
9797
"algebraic-data-types"
9898
]
99+
},
100+
{
101+
"slug": "temperature",
102+
"name": "Temperature",
103+
"uuid": "6ed15adb-f022-4bbd-bbb3-22845deabc91",
104+
"prerequisites": [
105+
"basics"
106+
],
107+
"status": "deprecated",
108+
"concepts": [
109+
"numbers"
110+
]
99111
}
100112
],
101113
"practice": [

exercises/concept/freelancer-rates/.docs/instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Implement a function to calculate the monthly rate, and apply a discount:
4040

4141
```haskell
4242
monthlyRate 77 10.5
43-
# => 12130
43+
-- -> 12130
4444
```
4545

4646
The returned monthly rate should be rounded up (take the ceiling) to the nearest integer.

exercises/concept/freelancer-rates/.docs/introduction.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fromIntegral 1
3939
-- -> 1.0
4040
```
4141

42-
To convert a `Float` to an `Int`, you can use the `round`, `floor`, or `ceiling` functions.
42+
To convert a `Float` to an `Int`, you can use the [`round`][round], [`floor`][floor], or [`ceiling`][ceiling] functions.
4343
The `round` function rounds to the nearest integer, `floor` rounds down, and `ceiling` rounds up.
4444

4545
```haskell
@@ -139,7 +139,7 @@ This is different from normal division.
139139
140140
```haskell
141141
1 `mod` 0
142-
# Exception: divide by zero
142+
-- Exception: divide by zero
143143
```
144144
~~~~
145145

@@ -179,6 +179,6 @@ It follows the order of parentheses(`()`), exponents(`**`), multiplication(`*`)
179179
```
180180

181181
[pemdas]: https://en.wikipedia.org/wiki/Order_of_operations
182-
[math]: https://crystal-lang.org/reference/latest/tutorials/basics/30_math.html
183-
[int]: https://crystal-lang.org/reference/latest/syntax_and_semantics/literals/integers.html
184-
[float]: https://crystal-lang.org/reference/latest/syntax_and_semantics/literals/floats.html
182+
[floor]: https://hackage.haskell.org/package/base/docs/Prelude.html#v:floor
183+
[ceiling]: https://hackage.haskell.org/package/base/docs/Prelude.html#v:ceiling
184+
[round]: https://hackage.haskell.org/package/base/docs/Prelude.html#v:round

0 commit comments

Comments
 (0)