---
title: "Discussion on \"Rounding errors in JavaScript\" | Hashnode"
description: "Discussion on \"Rounding errors in JavaScript\". JavaScript uses the IEEE-754 floating-point representation, which is a binary representation, that is capable of exactly representing fractions like 1/2 and 1/8. This is great and all, but the fractions we most commonly use are decimal ones, such as:..."
url: "https://hashnode.com/posts/rounding-errors-in-javascript/645221bea184ca0727218fce"
---

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

Discussion

# [Rounding errors in JavaScript](https://kcoderk.hashnode.dev/rounding-errors-in-javascript?utm_source=hashnode&utm_medium=feed)

JavaScript uses the IEEE-754 floating-point representation, which is a binary representation, that is capable of exactly representing fractions like 1/2 and 1/8. This is great and all, but the fractions we most commonly use are decimal ones, such as:...

May 3, 2023 · 1 min read · kcoderk.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#software-development](https://hashnode.com/tag/software-development)

## Written by

[KCoder](https://hashnode.com/@KristofCoder)

@KristofCoder · Earth

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

Creating stuff

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
