Search the web
Sign In
New User? Sign Up
pendragon-forms · Pendragon Forms
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Round to nearest 100   Message List  
Reply | Forward Message #2876 of 2884 |
Re: [pendragon-forms] Round to nearest 100

What field types are field #1 and #2? If they are integer, your script might
not work. I'm not sure how PF handles temporary variables; the field type of
variables might have to fit with the associated field type. If that's not it,
you might want to use different variable names, such as "temp" in line 3 (temp =
round result), but it doesn't seem like that should matter either.

If neither of the above suggestions help, I would recommend changing the script
to put the output of each step into field #2, to see where the script is
breaking down.

Dave




________________________________
From: Neal Aven <nealaven@...>
To: pendragon-forms@yahoogroups.com
Sent: Wednesday, July 22, 2009 9:31:05 AM
Subject: [pendragon-forms] Round to nearest 100


Hi all,

In field #2, I am trying to round a dollar value in field #1 to the nearest 100
but I am not having success with the script. Here's what I've got:

calculate:
result = $1 / 100
result = round result
answer = result * 100

On the handheld, this returns a value in field #2 of $0.00 every time.

Any suggestions?

Best regards,
Neal







[Non-text portions of this message have been removed]




Tue Jul 28, 2009 12:07 am

dhwert
Offline Offline
Send Email Send Email

Forward
Message #2876 of 2884 |
Expand Messages Author Sort by Date

Hi all, In field #2, I am trying to round a dollar value in field #1 to the nearest 100 but I am not having success with the script. Here's what I've got: ...
Neal Aven
nealaven
Offline Send Email
Jul 22, 2009
4:37 pm

What field types are field #1 and #2? If they are integer, your script might not work. I'm not sure how PF handles temporary variables; the field type of...
Dave Hockman-Wert
dhwert
Offline Send Email
Jul 28, 2009
2:48 pm

Thanks for the suggestions, Dave... I've managed to work through this. It turns out that I had to correct three things: 1. the MATHLIB.prc file (which is...
Neal Aven
nealaven
Offline Send Email
Jul 29, 2009
7:00 pm

Hello guys! I have a situation, i wanna discard day and the month from the date in taken from the calender. Please help out because i've tried to cauculate the...
Poloko Owen Rabai
sploxz
Offline Send Email
Jul 30, 2009
3:02 pm

Could you explain this more clearly? I'm not sure what you mean. If you want to discard day and month, that just leaves the year, right? What result do you...
Dave Hockman-Wert
dhwert
Offline Send Email
Jul 30, 2009
3:42 pm

Ok, let me explain! Usually in my program, i'll have a field askin a person when was the last time he or she had SEX, so because usually a person wil remember ...
Poloko Owen Rabai
sploxz
Offline Send Email
Jul 30, 2009
8:43 pm

I'm still not exactly sure what you want to calculate. You say that you want to determine whether the month and year that a person last had sex was "within"...
Dave Hockman-Wert
dhwert
Offline Send Email
Aug 3, 2009
3:01 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help