---
title: "Discussion on \"Unit conversion without a library: length, weight, and temperature in JavaScript\" | Hashnode"
description: "Discussion on \"Unit conversion without a library: length, weight, and temperature in JavaScript\". Converting units seems trivial until you need to do it correctly. Multiply by a factor? That works for length — meters to feet, kilometers to miles — but temperature needs an offset, not just a multip"
url: "https://hashnode.com/posts/unit-conversion-without-a-library-length-weight-and-temperature-in-javascript/6acca3773552bd377ca27e7e"
---

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

Discussion

# [Unit conversion without a library: length, weight, and temperature in JavaScript](https://toolstack-blog.hashnode.dev/unit-conversion-without-a-library-length-weight-and-temperature-in-javascript?utm_source=hashnode&utm_medium=feed)

Converting units seems trivial until you need to do it correctly. Multiply by a factor? That works for length — meters to feet, kilometers to miles — but temperature needs an offset, not just a multip

Oct 12 · 4 min read · toolstack-blog.hashnode.dev  
Updated Oct 22  
Read the article

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

## Written by

[Li Yi](https://hashnode.com/@yison)

@yison

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
