> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/syntax_and_semantics/literals/fraction.md).

# Fraction

The [Fraction](https://github.com/trizen/sidef/blob/master/lib/Sidef/Types/Number/Fraction.pod) class represents a generic [fraction](https://en.wikipedia.org/wiki/Fraction):

```ruby
var a = Fraction(3, 4)
var b = Fraction(5, 7)

say a*b     #=> Fraction(15, 28)
say a+b     #=> Fraction(41, 28)
```
