---
title: "Discussion on \"JavaScript Math Reference\" | Hashnode"
description: "Discussion on \"JavaScript Math Reference\". Basic Rounding Functions\nMath.floor(x) -> Always rounds DOWN to nearest integer\nMath.floor(4.9); // 4\nMath.floor(4.1); // 4\nMath.floor(-4.1); // -5 (down means more negative)\nMath.floor(-4.9); // -5\n\nMath.ceil(x) -> Always rounds UP to nearest intege..."
url: "https://hashnode.com/posts/javascript-math-reference/687478aa6798b9d5678736d1"
---

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

Discussion

# [JavaScript Math Reference](https://tigerabrodi.blog/javascript-math-reference?utm_source=hashnode&utm_medium=feed)

Basic Rounding Functions Math.floor(x) -> Always rounds DOWN to nearest integer Math.floor(4.9); // 4 Math.floor(4.1); // 4 Math.floor(-4.1); // -5 (down means more negative) Math.floor(-4.9); // -5 Math.ceil(x) -> Always rounds UP to nearest intege...

Jul 14, 2025 · 2 min read · tigerabrodi.blog  
Read the article

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

## Written by

[Tiger Abrodi](https://hashnode.com/@tigerabrodi)

@tigerabrodi · Germany

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

Obsessed with crafting software.

Just a guy who loves to write code and watch anime.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
