# Mathematical fractions and calculate with percentages

**URL:** <https://discourse.julialang.org/t/mathematical-fractions-and-calculate-with-percentages/73786>\
**Category:** General Usage\
**Tags:** numbers\
**Created:** [December 29, 2021, 8:42pm UTC](https://discourse.julialang.org/t/mathematical-fractions-and-calculate-with-percentages/73786 "2021-12-29T20:42:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MeteorBizone](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@MeteorBizone](https://discourse.julialang.org/u/MeteorBizone)\
**Post date:** [December 29, 2021, 8:42pm UTC](https://discourse.julialang.org/t/mathematical-fractions-and-calculate-with-percentages/73786/1 "2021-12-29T20:42:44Z")

</div>

How to use mathematical fractions and calculate with percentages?

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [December 29, 2021, 10:28pm UTC](https://discourse.julialang.org/t/mathematical-fractions-and-calculate-with-percentages/73786/2 "2021-12-29T22:28:06Z")

</div>

FWIW:

```julia
using Printf
x = 4//10 + 1//5
@printf("%.2f%%", x*100)
60.00%

```
