# ACOS auto rounding error

**URL:** <https://community.thunkable.com/t/acos-auto-rounding-error/2784266>\
**Category:** Questions about Thunkable X\
**Tags:** help\
**Created:** [January 15, 2024, 3:48pm UTC](https://community.thunkable.com/t/acos-auto-rounding-error/2784266 "2024-01-15T15:48:10Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [January 15, 2024, 8:58pm UTC](https://community.thunkable.com/t/acos-auto-rounding-error/2784266/10 "2024-01-15T20:58:06Z")

</div>

> [@\[Solved\] How do I find/add Map Markers Nearest to the User (Haversine formula)](https://community.thunkable.com/t/solved-how-do-i-find-add-map-markers-nearest-to-the-user-haversine-formula/598411/10):
>
> I wanted to share a fun solultion that I created for another project [https://us-central1-scorecard-x.cloudfunctions.net/returnDistance?long1=45&lat1=-83&long2=22&lat2=-40&miles=true](https://us-central1-scorecard-x.cloudfunctions.net/returnDistance?long1=45&lat1=-83&long2=22&lat2=-40&miles=true) You can feed it the lat and long for both location 1 and 2, true/false for returning miles or KM. this will return an object that has the distance! Quick and easy. each response takes apx 44 seconds when the function is warm. If you are doing a 1 off calculation, it takes about a second. i also replicated it in c…

So, 1) I’m still not sure how to help other than to say if you run the same calculation 10 times with fixed values and get different results somethings odd

1. the thread above shares a cloudflare worker that will tell you the distance between 2 points in km or miles

Use the second link from that post.

---

_[View the full topic](https://community.thunkable.com/t/acos-auto-rounding-error/2784266)._
