---
title: "Discussion on \"JS: Decimal and Hexadecimal\" | Hashnode"
description: "Discussion on \"JS: Decimal and Hexadecimal\". This is pretty interesting how you can convert not just standard decimal or hexadecimal numbers but any number with a base between 2 and 32. Here’s how:\nvar myDecimalNum = 10; \nmyDecimalNum.toString(16); \n\n// result : a\n\nvar myHexNum = \"a\"; \nparseInt..."
url: "https://hashnode.com/posts/js-decimal-and-hexadecimal/64eb8f213f3e28f8627422f2"
---

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

Discussion

# [JS: Decimal and Hexadecimal](https://tech.anupamm.com/js-decimal-and-hexadecimal?utm_source=hashnode&utm_medium=feed)

This is pretty interesting how you can convert not just standard decimal or hexadecimal numbers but any number with a base between 2 and 32. Here’s how: var myDecimalNum = 10; myDecimalNum.toString(16); // result : a var myHexNum = "a"; parseInt...

Jul 22, 2016 · 1 min read · tech.anupamm.com  
Updated Nov 9, 2024  
Read the article

-   [#js](https://hashnode.com/tag/js)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#hexadecimal](https://hashnode.com/tag/hexadecimal)
-   [#decimal](https://hashnode.com/tag/decimal)
-   [#conversion](https://hashnode.com/tag/conversion)

## Written by

[Anupam Majhi](https://hashnode.com/@anupammajhi)

@anupammajhi · Bangalore, India

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

Tech Lead | DevOps, Cloud, FullStack, Data Science, Machine Learning, AI

A Tech Lead by profession, a Data Enthusiast and a forever learner. Experienced in DevOps, Cloud, FullStack Development, Data Science, Machine Learning and AI.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
