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 contains 4 replies, has 3 voices, and was last updated by Pavel Čapek 1 year, 2 months ago. 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 senior developer 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.11 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 senior developer 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 20 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 senior developer BIM Project Author Posts You must be logged in to reply to this topic.