---
title: "Discussion on \"Why You Should Avoid Using pow() for Integer Exponentiation\" | Hashnode"
description: "Discussion on \"Why You Should Avoid Using pow() for Integer Exponentiation\". When i run this code in Vscode on windows machine it give wrong output at 153 & 1741725.\nEnter the number 153 sum is 152. 153 is not an Armstrong number but exception — its gives right output on macos machine vs code.\nHere, is the snapshot of my vs c..."
url: "https://hashnode.com/posts/why-you-should-avoid-using-pow-for-integer-exponentiation/667db4b754c17600b5b4acba"
---

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

Discussion

# [Why You Should Avoid Using pow() for Integer Exponentiation](https://jayantdotblog.hashnode.dev/why-you-should-avoid-using-pow-for-integer-exponentiation?utm_source=hashnode&utm_medium=feed)

When i run this code in Vscode on windows machine it give wrong output at 153 & 1741725. Enter the number 153 sum is 152. 153 is not an Armstrong number but exception — its gives right output on macos machine vs code. Here, is the snapshot of my vs c...

Jun 27, 2024 · 1 min read · jayantdotblog.hashnode.dev  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)
-   [#coding](https://hashnode.com/tag/coding)
-   [#learner](https://hashnode.com/tag/learner)

## Written by

[Jayant Rana](https://hashnode.com/@JACKSTACK)

@JACKSTACK

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
