---
title: "Discussion on \"How I Wrote A Fixed-Point Solidity Sqrt That Runs In 197 Gas\" | Hashnode"
description: "Discussion on \"How I Wrote A Fixed-Point Solidity Sqrt That Runs In 197 Gas\". I live by a simple rule: if a function is on your pocket calculator, I want it in Solidity — as fast as possible, and precise enough that you never have to think about it. Square root is exactly that"
url: "https://hashnode.com/posts/how-i-wrote-a-fixed-point-solidity-sqrt-that-runs-in-197-gas/6a7456e5886f2bae78975fe1"
---

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

Discussion

# [How I Wrote A Fixed-Point Solidity Sqrt That Runs In 197 Gas](https://defimath.hashnode.dev/how-i-wrote-a-fixed-point-solidity-sqrt-that-runs-in-197-gas?utm_source=hashnode&utm_medium=feed)

I live by a simple rule: if a function is on your pocket calculator, I want it in Solidity — as fast as possible, and precise enough that you never have to think about it. Square root is exactly that

Aug 6 · 8 min read · defimath.hashnode.dev  
Read the article

-   [#solidity](https://hashnode.com/tag/solidity)
-   [#sqrt](https://hashnode.com/tag/sqrt)
-   [#gas-optimization](https://hashnode.com/tag/gas-optimization)

## Written by

[NebojsaKonsta](https://hashnode.com/@nebojsakonsta)

@nebojsakonsta

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

Solidity, math, defi, derivatives.

Long time Solidity developer, specializing in defi derivatives like options, futures, and advance math.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
