# Rounded Mean help (to the tenth place)

**URL:** <https://cl.desmos.com/t/rounded-mean-help-to-the-tenth-place/3289>\
**Category:** Questions\
**Tags:** aggregate\
**Created:** [May 16, 2021, 12:56pm UTC](https://cl.desmos.com/t/rounded-mean-help-to-the-tenth-place/3289 "2021-05-16T12:56:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jme](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jme/32/516_2.png) [@Jme](https://cl.desmos.com/u/Jme)\
**Post date:** [May 16, 2021, 12:56pm UTC](https://cl.desmos.com/t/rounded-mean-help-to-the-tenth-place/3289/1 "2021-05-16T12:56:12Z")

</div>

I’d like to check for the Mean of aggregate data rounded to the nearest tenth place, but the function round(x) only produces a whole number integer.  
How can I check for the rounded mean of aggregate data to the nearest tenth place in a graph?  
(Thanks in advance!)

> **[Average Your Grades! (mean & median) • Activity by Jme Munn](https://classroom.amplify.com/activity/60a1140f946e0f07a27eb745)**
>
> Collect data on your current grades!
> Find the median & mean
> (self checking)

---

<div class="post-metadata">

**Author:** ![Aethir](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/aethir/32/2767_2.png) [@Aethir](https://cl.desmos.com/u/Aethir)\
**Post date:** [May 16, 2021, 2:09pm UTC](https://cl.desmos.com/t/rounded-mean-help-to-the-tenth-place/3289/2 "2021-05-16T14:09:42Z")

</div>

Could you “trick” it? Multiply by 10, round, then divide by ten?

As in:

a = input\*10  
b = round(a)  
c = b/10

then your output is c

Like this: [Workaround](https://www.desmos.com/calculator/nkbuf0fytt)

---

<div class="post-metadata">

**Author:** ![Aethir](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/aethir/32/2767_2.png) [@Aethir](https://cl.desmos.com/u/Aethir)\
**Post date:** [May 16, 2021, 2:28pm UTC](https://cl.desmos.com/t/rounded-mean-help-to-the-tenth-place/3289/3 "2021-05-16T14:28:31Z")

</div>

Alternately:

> [@Rounding & Truncating](https://cl.desmos.com/t/rounding-truncating/1035):
>
> Searching the forum, I found a way to round a value to 2 decimal places (useful in CL documentation?) rounded\_value = simpleFunction("\operatorname{round}(k,2)",“k”).evaluateAt(value) Using this I can also round to an integer by setting the number of decimal places to zero but is there a better way? Also, is there an operator for ‘truncate’? I tried that and ‘trunc’ in the above but no success.

Just pass the number of decimal places you want the number rounded to as another argument.

round(number,digits)

---

<div class="post-metadata">

**Author:** ![Jme](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jme/32/516_2.png) [@Jme](https://cl.desmos.com/u/Jme)\
**Post date:** [May 16, 2021, 8:45pm UTC](https://cl.desmos.com/t/rounded-mean-help-to-the-tenth-place/3289/4 "2021-05-16T20:45:37Z")

</div>

> [@Aethir](#):
>
> a = input\*10  
> b = round(a)  
> c = b/10

Yeah! That totally worked! Thanks for the simple fix 🙂  
I appreciate the help!

---

<div class="post-metadata">

**Author:** ![Jme](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jme/32/516_2.png) [@Jme](https://cl.desmos.com/u/Jme)\
**Post date:** [May 16, 2021, 8:52pm UTC](https://cl.desmos.com/t/rounded-mean-help-to-the-tenth-place/3289/5 "2021-05-16T20:52:46Z")

</div>

This way is even simpler!  
I tried it second and way less steps.  
I’m going with this way!  
Thanks!
