# Calculate the absolute value of a float without using @abs

**URL:** <https://ziggit.dev/t/calculate-the-absolute-value-of-a-float-without-using-abs/4092>\
**Category:** Help\
**Tags:** language\
**Created:** [April 25, 2024, 5:48pm UTC](https://ziggit.dev/t/calculate-the-absolute-value-of-a-float-without-using-abs/4092 "2024-04-25T17:48:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![permutationlock](https://ziggit.dev/user_avatar/ziggit.dev/permutationlock/32/9958_2.png) [@permutationlock](https://ziggit.dev/u/permutationlock)\
**Post date:** [April 25, 2024, 6:06pm UTC](https://ziggit.dev/t/calculate-the-absolute-value-of-a-float-without-using-abs/4092/3 "2024-04-25T18:06:45Z")

</div>

This might not be the best solution for your case, but I came up with [this](https://ziggit.dev/t/how-to-write-compat-shim-for-builtin-function-changes-e-g-abs-vs-fabs/2325/2) in response to a similar question.

---

_[View the full topic](https://ziggit.dev/t/calculate-the-absolute-value-of-a-float-without-using-abs/4092)._
