forum-msg-id-136131-edit

Original date:2021-04-29 14:32:57 Edited by: petelomax Subject: Re: product() unexpected result

What? In phix, product({}) always has and always will return 1.

What is likely/going to change is that the previously illegal product({},0) returns 0. Tom, please correct your post.

Anyway, surely product({3,2,1}) returns 6 tons of concrete should be compared against product({0,0,0}) returning 0,
assuming {x,y,z} or {length,width,height|depth} args, but I'll use it anyway.
I've also just thought of sum({},1) to award a bonus point for "no faults".

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu