---
title: "Discussion on \"abs() function in Python\" | Hashnode"
description: "Discussion on \"abs() function in Python\". Introduction\nThe abs() function returns the absolute value of a number. In case the number is a complex number, it returns its magnitude.\nThe syntax of the abs() function looks like this:\nabs(n)\nwhere n is the number whose absolute value has to be ca..."
url: "https://hashnode.com/posts/abs-function-in-python/6344629bf943840715bd23d7"
---

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

Discussion

# [abs() function in Python](https://blog.ashutoshkrris.in/abs-function-in-python?utm_source=hashnode&utm_medium=feed)

Introduction The abs() function returns the absolute value of a number. In case the number is a complex number, it returns its magnitude. The syntax of the abs() function looks like this: abs(n) where n is the number whose absolute value has to be ca...

Oct 10, 2022 · 2 min read · blog.ashutoshkrris.in  
Updated Mar 18, 2023  
Read the article

-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)
-   [#beginner](https://hashnode.com/tag/beginner)

## Written by

[Ashutosh Krishna](https://hashnode.com/@ashutoshkrris)

@ashutoshkrris · Bengaluru, India

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

Building reliable software with Java, Spring Boot, Python, and the web

Software Engineer at OpenText passionate about building scalable web applications and backend systems. I work mainly with Java, Spring Boot, Python, and modern web technologies. I enjoy creating things for the internet, exploring new tech, and sharing what I learn along the way.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
