Total sum of value in buffer Home › Forums › Problems and solutions in GDL › Others › Total sum of value in buffer Tagged: gdl, buffer, sum This topic has 4 replies, 3 voices, and was last updated 5 years, 1 month ago by Pavel Čapek. Viewing 2 reply threads Author Posts September 11, 2016 at 18:19 #2712 Pavel ČapekParticipant Hello, Is there a posibbility to get total sum of value from buffer. I imagine somethink like totalSum=sum(get(nsp)). Thanks for replay. Pavel Pavel Čapek BIM Project September 12, 2016 at 11:20 #2719 Joachim SühloParticipant Isn’t it simple NSP itself, which gives you the sum? GDL Object Developer b-prisma MAC OSx 10.14 September 12, 2016 at 12:29 #2720 Pavel ČapekParticipant Hello Joachim, thanks for reply. But this is not what I mean. Maybe my example bellow will bring some clarification to what I mean. put 1, 2, 3, 4 print(nsp) “nsp” gives me a number of values count => 4 not a sum of values => 10 Pavel Čapek BIM Project September 13, 2016 at 02:56 #2724 Barry KellyParticipant Maybe this? for n = 1 to (NSP) totalSum = totalSum + GET (1) next n print totalSum Barry. Versions 6.5 to 22 Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10 Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit September 13, 2016 at 08:30 #2726 Pavel ČapekParticipant Thank you. This is it. Pavel Čapek BIM Project Author Posts Viewing 2 reply threads The forum ‘Others’ is closed to new topics and replies.