Browse Search Popular Register Upload Rules User list Login:
Search:
Simple Average of a list of numbers

Image:
screenshot of the scene

Author: Pedro6159

Group: Default

Filesize: 36.73 kB

Date added: 2020-12-26

Rating: 5

Downloads: 830

Views: 240

Comments: 0

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

¯\_(ツ)_/¯


Variable :
scene.my.numbers = [6, 8, 10, 9];

Code :
Scene.my.result = [];
text = math.toString(Reflection.ExecuteCode(string.list2str(for((st-
ring.length(scene.my.Value)), (n)=>{
string.length(string.split(math.toString(scene.my.Value(n)), ".")) > 1 ? {
scene.my.result = scene.my.result ++ ["+(" + math.toFloat(scene.my.Value(n)) + ")"]
} : {
scene.my.result = scene.my.result ++ ["+(" + math.toFloat(scene.my.Value(n)) + ".0)"]
}
}))) / string.length(Scene.my.Value))
Last edited at 2020/12/26 21:30:02 by Pedro6159
Please log in to rate this scene
edit
Similar scenes
Title: Moving Average, Average and List Interpolation Scripts!
Rating: 5.25
Filesize: 27.7 kB
Downloads: 273
Comments: 3
Ratings: 2
Date added: 2024/04/08 15:59:11
Made with: Algodoo v2.1.0
Rating: rated 5.3
download
Title: Awful Numbers List
Rating: 5
Filesize: 6.89 kB
Downloads: 605
Comments: 1
Ratings: 1
Date added: 2017/04/02 05:36:08
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Algodoo Tools Tier List
Rating: 5.375
Filesize: 316.35 kB
Downloads: 1668
Comments: 5
Ratings: 2
Date added: 2024/05/29 11:32:57
Made with: Algodoo v2.1.0
Rating: rated 5.4
download
Title: Irrational 20 numbers😃
Rating: 5
Filesize: 0.76 MB
Downloads: 495
Comments: 0
Ratings: 1
Date added: 2025/12/14 05:36:34
Made with: Algodoo v2.2.4
Rating: rated 5
download
Title: types of numbers in aliquot sequences described visually (see desc.)
Rating: 5
Filesize: 29.12 kB
Downloads: 310
Comments: 0
Ratings: 1
Date added: 2025/12/31 13:26:51
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: BFB character favorites list
Rating: 5
Filesize: 2.51 MB
Downloads: 640
Comments: 1
Ratings: 1
Date added: 2018/05/30 02:34:26
Made with: Algodoo v2.1.0
Rating: rated 5
download