Skip to content

Commit

Permalink
fromFractional -> round
Browse files Browse the repository at this point in the history
  • Loading branch information
GoNZooo committed May 19, 2021
1 parent 93b4185 commit a1697ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basics/01-values-and-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ loss of precision in our calculations:

```haskell
subtractRoundedFloat :: Int -> Float -> Int
subtractRoundedFloat int float = int - fromFractional float
subtractRoundedFloat int float = int - round float
```

If we were to run this we'd see:
Expand Down

0 comments on commit a1697ff

Please sign in to comment.