---
title: "Discussion on \"4 Easy Ways to Covert a JavaScript String to a Number\" | Hashnode"
description: "Discussion on \"4 Easy Ways to Covert a JavaScript String to a Number\". And How to Remove the trailing Zeros on a Floating Point Number"
url: "https://hashnode.com/posts/4-easy-ways-to-covert-a-javascript-string-to-a-number/62d5e0b3bc2c7a1dc672cdb2"
---

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

Discussion

# [4 Easy Ways to Covert a JavaScript String to a Number](https://indepthjavascript.dev/4-easy-ways-to-covert-a-javascript-string-to-a-number?utm_source=hashnode&utm_medium=feed)

And How to Remove the trailing Zeros on a Floating Point Number

Jul 18, 2022 · 3 min read · indepthjavascript.dev  
Read the article

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

## Written by

[Amit Mehta](https://hashnode.com/@apmfree)

@apmfree · Abington, PA

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

Javascript Developer who Loves to Code!

Self taught full stack developer who loves to code, just for fun. Enjoys health &amp; fitness, yoga, and meditation. Lives with his wonderful wife and 2 cats in Abington, PA.

## Responses 1

Markdown supported · ⌘↵ to post

[Donkey Code](https://hashnode.com/@donkeycode)

[Jul 19, 2022](https://hashnode.com/posts/4-easy-ways-to-covert-a-javascript-string-to-a-number/62d5e0b3bc2c7a1dc672cdb2/comment/62d656253060d03288d9c6a3)

Damn, + is awesome and I had no idea!
