---
title: "Discussion on \"Understanding toFixed and toPrecision number methods in Javascript\" | Hashnode"
description: "Discussion on \"Understanding toFixed and toPrecision number methods in Javascript\". Introduction\nI was building a cart page recently where I have to show the total cost of all the products which includes tax and delivery charges and then I saw something like this...\n\nAnd after seeing the value of tax I was like...\n\nSo the next thoug..."
url: "https://hashnode.com/posts/understanding-tofixed-and-toprecision-number-methods-in-javascript/61d2c9ba7a190f6c0c3ab19a"
---

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

Discussion

# [Understanding toFixed and toPrecision number methods in Javascript](https://blog.sairaj.me/understanding-tofixed-and-toprecision-number-methods-in-javascript?utm_source=hashnode&utm_medium=feed)

Introduction I was building a cart page recently where I have to show the total cost of all the products which includes tax and delivery charges and then I saw something like this... And after seeing the value of tax I was like... So the next thoug...

Jan 3, 2022 · 5 min read · blog.sairaj.me  
Read the article

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

## Written by

[Sairaj](https://hashnode.com/@sairaj)

@sairaj

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

Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
