Re: [WebDNA] divisible by 1

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 106954
interpreted = N
texte = Maybe I need to URL the comparison values ... Sincerely, Kenneth Grome > Ken > > It fails if you have an ! in the string .... > > 123!456 > > Regards > > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au > > On 14/07/2011, at 7:23 AM, Kenneth Grome wrote: > > If I have to check for a dot character anyways I can do > > that without the math. > > > > Anyways my solution is this ... and it actually works: > > > > [text]error=no[/text] > > [listchars chars=[url][value][/url]] > > [hideif 0123456789^[char]] > > [text]error=yes[/text] > > [/hideif] > > [/listchars] > > > > Sincerely, > > Kenneth Grome > > > >> right.. so just establish that you have a number (via > >> one of the newly-verified methods) .. and then check > >> for a dot char (to throw it out; realize it is NOT a > >> whole #) > >> > >>> This approach seems like the values would be the same > >>> no matter what numbers you multiply by 1 ... but I'm > >>> trying to get whole numbers here. > >>> > >>> Sincerely, > >>> Kenneth Grome > >>> > >>>> I usually multiply by 1 and then compare the val > >>>> before and after. > >>>> > >>>> Marc > >>>> > >>>> On 7/13/2011 12:54 PM, Govinda wrote: > >>>>> off the top of my head, I think I would just > >>>>> multiply by zero to confirm a number.. and then > >>>>> check if it contains a dot to un-confirm. > >>>>> > >>>>> On 2011-07-13, at 2:35 PM, Kenneth Grome wrote: > >>>>>> I thought I could use "divisible by 1" to > >>>>>> determine whether or not an entry is a whole > >>>>>> number: > >>>>>> > >>>>>> [showif [value]\1]it's a whole number[/showif] > >>>>>> > >>>>>> ... but when the value is 123.45 it says it's a > >>>>>> whole number when it is not. > >>>>>> > >>>>>> So what technique do you folks use to determine > >>>>>> whether the value is a whole number? > >>>>>> > >>>>>> Sincerely, > >>>>>> Kenneth Grome > >>>>>> -------------------------------------------------- > >>>>>> -- -- --- This message is sent to you because you > >>>>>> are subscribed to the mailing > >>>>>> list. To unsubscribe, E-mail > >>>>>> to: archives: > >>>>>> http://mail.webdna.us/list/talk@webdna.us Bug > >>>>>> Reporting: support@webdna.us > >>>>> > >>>>> - Govinda > >>>>> -------------- > >>>>> Old WebDNA talklist archives: > >>>>> http://dev.webdna.us/TalkListArchive/index.tpl?db=w > >>>>> eb dn a-talk > >>>>> > >>>>> --------------------------------------------------- > >>>>> -- -- -- This message is sent to you because you > >>>>> are subscribed to the mailing > >>>>> list. To unsubscribe, E-mail > >>>>> to: archives: > >>>>> http://mail.webdna.us/list/talk@webdna.us Bug > >>>>> Reporting: support@webdna.us > >>>>> . > >>> > >>> ----------------------------------------------------- > >>> -- -- This message is sent to you because you are > >>> subscribed to the mailing list . To > >>> unsubscribe, E-mail to: > >>> archives: http://mail.webdna.us/list/talk@webdna.us > >>> Bug Reporting: support@webdna.us > >> > >> - Govinda > >> -------------- > >> Old WebDNA talklist archives: > >> http://dev.webdna.us/TalkListArchive/index.tpl?db=webd > >> na- talk > >> > >> ------------------------------------------------------ > >> --- This message is sent to you because you are > >> subscribed to the mailing list . > >> To unsubscribe, E-mail to: > >> archives: http://mail.webdna.us/list/talk@webdna.us > >> Bug Reporting: support@webdna.us > > > > ------------------------------------------------------- > > -- This message is sent to you because you are > > subscribed to the mailing list . > > To unsubscribe, E-mail to: > > archives: http://mail.webdna.us/list/talk@webdna.us > > Bug Reporting: support@webdna.us > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] divisible by 1 (Marc Thompson 2011)
  2. Re: [WebDNA] divisible by 1 (Donovan Brooke 2011)
  3. Re: [WebDNA] divisible by 1 (Christer Olsson 2011)
  4. Re: [WebDNA] divisible by 1 (Donovan Brooke 2011)
  5. Re: [WebDNA] divisible by 1 (Stuart Tremain 2011)
  6. Re: [WebDNA] divisible by 1 (Kenneth Grome 2011)
  7. Re: [WebDNA] divisible by 1 (Kenneth Grome 2011)
  8. Re: [WebDNA] divisible by 1 (Stuart Tremain 2011)
  9. Re: [WebDNA] divisible by 1 (Kenneth Grome 2011)
  10. Re: [WebDNA] divisible by 1 (Kenneth Grome 2011)
  11. Re: [WebDNA] divisible by 1 (Govinda 2011)
  12. Re: [WebDNA] divisible by 1 (Govinda 2011)
  13. Re: [WebDNA] divisible by 1 (Kenneth Grome 2011)
  14. Re: [WebDNA] divisible by 1 (Ronald Kirkland 2011)
  15. Re: [WebDNA] divisible by 1 (Marc Thompson 2011)
  16. Re: [WebDNA] divisible by 1 (William DeVaul 2011)
  17. Re: [WebDNA] divisible by 1 (Kenneth Grome 2011)
  18. Re: [WebDNA] divisible by 1 (Kenneth Grome 2011)
  19. Re: [WebDNA] divisible by 1 (Govinda 2011)
  20. [WebDNA] divisible by 1 (Kenneth Grome 2011)
Maybe I need to URL the comparison values ... Sincerely, Kenneth Grome > Ken > > It fails if you have an ! in the string .... > > 123!456 > > Regards > > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au > > On 14/07/2011, at 7:23 AM, Kenneth Grome wrote: > > If I have to check for a dot character anyways I can do > > that without the math. > > > > Anyways my solution is this ... and it actually works: > > > > [text]error=no[/text] > > [listchars chars=[url][value][/url]] > > [hideif 0123456789^[char]] > > [text]error=yes[/text] > > [/hideif] > > [/listchars] > > > > Sincerely, > > Kenneth Grome > > > >> right.. so just establish that you have a number (via > >> one of the newly-verified methods) .. and then check > >> for a dot char (to throw it out; realize it is NOT a > >> whole #) > >> > >>> This approach seems like the values would be the same > >>> no matter what numbers you multiply by 1 ... but I'm > >>> trying to get whole numbers here. > >>> > >>> Sincerely, > >>> Kenneth Grome > >>> > >>>> I usually multiply by 1 and then compare the val > >>>> before and after. > >>>> > >>>> Marc > >>>> > >>>> On 7/13/2011 12:54 PM, Govinda wrote: > >>>>> off the top of my head, I think I would just > >>>>> multiply by zero to confirm a number.. and then > >>>>> check if it contains a dot to un-confirm. > >>>>> > >>>>> On 2011-07-13, at 2:35 PM, Kenneth Grome wrote: > >>>>>> I thought I could use "divisible by 1" to > >>>>>> determine whether or not an entry is a whole > >>>>>> number: > >>>>>> > >>>>>> [showif [value]\1]it's a whole number[/showif] > >>>>>> > >>>>>> ... but when the value is 123.45 it says it's a > >>>>>> whole number when it is not. > >>>>>> > >>>>>> So what technique do you folks use to determine > >>>>>> whether the value is a whole number? > >>>>>> > >>>>>> Sincerely, > >>>>>> Kenneth Grome > >>>>>> -------------------------------------------------- > >>>>>> -- -- --- This message is sent to you because you > >>>>>> are subscribed to the mailing > >>>>>> list. To unsubscribe, E-mail > >>>>>> to: archives: > >>>>>> http://mail.webdna.us/list/talk@webdna.us Bug > >>>>>> Reporting: support@webdna.us > >>>>> > >>>>> - Govinda > >>>>> -------------- > >>>>> Old WebDNA talklist archives: > >>>>> http://dev.webdna.us/TalkListArchive/index.tpl?db=w > >>>>> eb dn a-talk > >>>>> > >>>>> --------------------------------------------------- > >>>>> -- -- -- This message is sent to you because you > >>>>> are subscribed to the mailing > >>>>> list. To unsubscribe, E-mail > >>>>> to: archives: > >>>>> http://mail.webdna.us/list/talk@webdna.us Bug > >>>>> Reporting: support@webdna.us > >>>>> . > >>> > >>> ----------------------------------------------------- > >>> -- -- This message is sent to you because you are > >>> subscribed to the mailing list . To > >>> unsubscribe, E-mail to: > >>> archives: http://mail.webdna.us/list/talk@webdna.us > >>> Bug Reporting: support@webdna.us > >> > >> - Govinda > >> -------------- > >> Old WebDNA talklist archives: > >> http://dev.webdna.us/TalkListArchive/index.tpl?db=webd > >> na- talk > >> > >> ------------------------------------------------------ > >> --- This message is sent to you because you are > >> subscribed to the mailing list . > >> To unsubscribe, E-mail to: > >> archives: http://mail.webdna.us/list/talk@webdna.us > >> Bug Reporting: support@webdna.us > > > > ------------------------------------------------------- > > -- This message is sent to you because you are > > subscribed to the mailing list . > > To unsubscribe, E-mail to: > > archives: http://mail.webdna.us/list/talk@webdna.us > > Bug Reporting: support@webdna.us > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

empty shopping cart message (1997) Lookup question (2001) Editing Users.db (1997) I have troubles to send message out (1998) Unix webcat perms & multiple versions of same db in cache issue (2000) [shownext] and descending order (1997) bug in [SendMail] (1997) Emailer setup (1997) HTTP upload (2000) Nested tags count question (1997) Display [price] in banner ad (1998) Satisfy Me ! was: Why can't support be satisfying to (2000) Searching multiple Databases (1997) Why do extra quotation marks sometimes appear in my databases? (1998) Configuring E-mail (1997) WC TableGrinder (1997) Calculating Age from DB fields (2003) ShowNext (1997) Webstar SSL and Non-SSL question (1998) Problems appending to database (1997)