mean
It basically calculates the mean of all numbers provided in an argument as long as you provided 2 or more of them. Also supports TSE Math Blocks Operations, Functions and Variables if you wanna have more fun with it Unless you want a certain role to use this, there's nothing to change inside the tag itself. No commands were used
Sharedunrated
Content
16 lines{=(format):{join(+):{args}}}
{=(N):{index(#&@):{args} #&@}}
{=(mean):{m:({format})/{N}}}
{=(lengthCheck):{replace(true,f):{contains(1):{N}}}}
{=(numCheck):{replace(false,f):{in({m:{format}}):{m:({format})/1}}}}
{=(output):out{index(f):placeholder {lengthCheck} {numCheck}}}
{=(out1):Please include at least 2 numbers}
{=(out2):An input is not a number. Please recheck}
{=(out-1):```js
"Sum": {m:{format}}
"Mean": {mean}```}
{{output}}Raw JSON
{
"id": 623457,
"created_at": "2021-02-21T05:42:50.000Z",
"tag_name": "mean",
"nsfw": false,
"owner_id": "646276399895937025",
"uses": 118,
"description": "It basically calculates the mean of all numbers provided in an argument as long as you provided 2 or more of them. Also supports TSE Math Blocks Operations, Functions and Variables if you wanna have more fun with it\n\nUnless you want a certain role to use this, there's nothing to change inside the tag itself. No commands were used",
"restricted": false,
"shared": true,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "765906329356861460",
"sharer": "646276399895937025",
"content": "{=(format):{join(+):{args}}}\n{=(N):{index(#&@):{args} #&@}}\n{=(mean):{m:({format})/{N}}}\n\n{=(lengthCheck):{replace(true,f):{contains(1):{N}}}}\n{=(numCheck):{replace(false,f):{in({m:{format}}):{m:({format})/1}}}}\n\n{=(output):out{index(f):placeholder {lengthCheck} {numCheck}}}\n\n{=(out1):Please include at least 2 numbers}\n{=(out2):An input is not a number. Please recheck}\n{=(out-1):```js\n\"Sum\": {m:{format}}\n\"Mean\": {mean}```}\n\n{{output}}",
"embed": "{}",
"last_fetched": "2026-10-21T00:23:29.334Z"
}