Return-Path: X-Original-To: apmail-jakarta-jmeter-user-archive@www.apache.org Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A6E4D21F7 for ; Tue, 3 May 2011 17:25:27 +0000 (UTC) Received: (qmail 96277 invoked by uid 500); 3 May 2011 17:25:26 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 96247 invoked by uid 500); 3 May 2011 17:25:25 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 96238 invoked by uid 99); 3 May 2011 17:25:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 17:25:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of flyingrhenquest@gmail.com designates 209.85.218.44 as permitted sender) Received: from [209.85.218.44] (HELO mail-yi0-f44.google.com) (209.85.218.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 17:25:19 +0000 Received: by yic13 with SMTP id 13so130472yic.31 for ; Tue, 03 May 2011 10:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=mVP6X406O567Xi8gUx29pIgCSJGG0QtaG+toXfHFu+o=; b=A4WOje98lPKffKMPJJOcce+JVSBozsir9eln7xkNqE8RLKZBBnjub+NZv92PFv6qwa XwuFkLH1byYplh8cTzbWhVhxIFm2KUa/GC7Xjo2Ety1Lw6AzvOCrdFn7AZMQtTDLjH7J RFmzKmUsYZOKFGWAmAd9HjxvmbIReU4d6KYHc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=lNqjB9I6vFp4vIUG5vjTs4CvTVyjMI0iOSbfrEEL03dAQGsOX5GKZFw4W35PFgsmUO BPvDBZSIP7PEPZve+TLWeqWO4AoDaV52ZpqvZZ4OQUMRUReYBw7p1UongxGn6r9oyP1X B0zbq5Eumcf3EDJkdLbD8OL8BDSqkH1ymQT6g= MIME-Version: 1.0 Received: by 10.151.94.5 with SMTP id w5mr196982ybl.243.1304443498655; Tue, 03 May 2011 10:24:58 -0700 (PDT) Received: by 10.151.50.1 with HTTP; Tue, 3 May 2011 10:24:58 -0700 (PDT) In-Reply-To: <789BBB82D1C8B348B2BC1EBC037EC8975BA52FD8@mail02.higherone.com> References: <789BBB82D1C8B348B2BC1EBC037EC8975BA52FD8@mail02.higherone.com> Date: Tue, 3 May 2011 11:24:58 -0600 Message-ID: Subject: Re: long\int Sum fuction From: Bruce Ide To: JMeter Users List Content-Type: multipart/alternative; boundary=000e0cd7343a5df04d04a2626bf8 --000e0cd7343a5df04d04a2626bf8 Content-Type: text/plain; charset=ISO-8859-1 ints and longs don't do real numbers. I don't see a function to use floats, which seems odd to me. I'm sure you could add up your numbers with a BSF sampler, though. Something like Float myFloat = ${varWithReals} // Or use Float.parseFloat(vars.get("varWithReals")); Float accumulate = ${accumulatorVar} + myFloat; vars.put("accumulatorVar", Float.toString(accumulate)); It's kind of a long way to go to get that, though. Perhaps someone can suggest an easier method. You may prefer to use Double than Float, depending on how big/small your numbers are. -- Bruce Ide FlyingRhenquest@gmail.com --000e0cd7343a5df04d04a2626bf8--