Skip to content

Commit

Permalink
数値: 割り算の余りを求める #4
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshikuniJujo committed Apr 7, 2017
1 parent ee8ebea commit d44b950
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 数値/割り算の余りを求める.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
割り算の余りを求める
====================

割り算の余りを求めるには関数modを使います。

```haskell
> 8 `mod` 3
2
```

関数modの型は、つぎのようになります。

```haskell
mod :: Integral a => a -> a -> a
```

0 comments on commit d44b950

Please sign in to comment.