---
title: "Discussion on \"Ruby: Why does my division return an integer instead of a decimal value?\" | Hashnode"
description: "Discussion on \"Ruby: Why does my division return an integer instead of a decimal value?\". Greetings\nHey,  It's Alexandre Calaça here. Hope you're fine.\nIntroduction\nIn this article, let's check why some Ruby's divisions return an integer instead of a decimal value and figure out a way to solve this issue.\nWhy does it happen?\nFirst things ..."
url: "https://hashnode.com/posts/ruby-why-does-my-division-return-an-integer-instead-of-a-decimal-value/61fdd7a7fd8b083e5728bad8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Ruby: Why does my division return an integer instead of a decimal value?](https://blog.alexandrecalaca.com/ruby-why-does-my-division-return-an-integer-instead-of-a-decimal-value?utm_source=hashnode&utm_medium=feed)

Greetings Hey, It's Alexandre Calaça here. Hope you're fine. Introduction In this article, let's check why some Ruby's divisions return an integer instead of a decimal value and figure out a way to solve this issue. Why does it happen? First things ...

Feb 5, 2022 · 2 min read · blog.alexandrecalaca.com  
Updated Jul 27, 2022  
Read the article

-   [#ruby](https://hashnode.com/tag/ruby)
-   [#mathematics](https://hashnode.com/tag/mathematics)

## Written by

[Alexandre Calaça](https://hashnode.com/@alexandrecalaca)

@alexandrecalaca

  
[View profile](https://hashnode.com/@alexandrecalaca)

I'm a passionate software developer.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
