Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:41 02 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Averaging an array ....

Author Message
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 719
Posted: 03:45pm 21 Apr 2022
Copy link to clipboard 
Print this post

....
What is the most efficient code that
will average all the values in an array ?
my site
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 03:48pm 21 Apr 2022
Copy link to clipboard 
Print this post

MATH(MEAN a())

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 719
Posted: 04:54pm 21 Apr 2022
Copy link to clipboard 
Print this post

  thwill said  
MATH(MEAN a())


Thank You !
I was hoping there was
something like that ,
but never thought of the
' math ' functions ...
my site
 
Rickard5

Guru

Joined: 31/03/2022
Location: United States
Posts: 463
Posted: 07:22pm 21 Apr 2022
Copy link to clipboard 
Print this post

  thwill said  
MATH(MEAN a())

Best wishes,

Tom

MATH Can Be such a Bully, it should get an ASBO :)
I may be Vulgar, but , while I'm poor, I'm Industrious, Honest,  and trustworthy! I Know my Place
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025