Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
calculating total
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
EmB  
View profile  
 More options Feb 22 2012, 12:45 am
From: EmB <emilybuck...@gmail.com>
Date: Tue, 21 Feb 2012 21:45:47 -0800 (PST)
Local: Wed, Feb 22 2012 12:45 am
Subject: calculating total
Hello,

I'd like to calculate the total value between two annotations but I
don't have a clue when it comes to java!

Would it be possible to help me modify this code to get the outcome
I'm after?

                    case "total":
                    for (var i = start; i <= end;i++ ) {
                        result = result + g.getValue(i,channel);
                    }
                    result = result + (end-start+1);
                    break;

Thanks for your time.

Cheers,

Emily


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
red-fox  
View profile  
 More options Feb 22 2012, 4:49 am
From: red-fox <cmu...@gmail.com>
Date: Wed, 22 Feb 2012 01:49:23 -0800 (PST)
Local: Wed, Feb 22 2012 4:49 am
Subject: Re: calculating total
Hi Emily,

i think it's just like this:

>                     case "total":
>                     for (var i = start; i <= end;i++ ) {
>                         result = result + g.getValue(i,channel);
>                     }
>                     //result = result + (end-start+1); // you don't need this, it's already the total sum.
>                     break;

greets,

Christian

On 22 Feb., 06:45, EmB <emilybuck...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
EmB  
View profile  
 More options Feb 22 2012, 5:21 pm
From: EmB <emilybuck...@gmail.com>
Date: Wed, 22 Feb 2012 14:21:45 -0800 (PST)
Local: Wed, Feb 22 2012 5:21 pm
Subject: Re: calculating total
That works perfectly! Thanks heaps for your time.

Cheers,
Emily

On Feb 22, 8:49 pm, red-fox <cmu...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »