Re: [WebDNA] divisible by 1
This WebDNA talk-list message is from 2011
It keeps the original formatting.
numero = 106956
interpreted = N
texte = Now you are on a winner :)On 14/07/2011, at 9:39 AM, Kenneth Grome wrote:> Fixed it. Needed the [char] tag urled. This works:> > [text show=t]error=no[/text]> [listchars chars=[url][value][/url]]> [hideif 0123456789^[url][char][/url]]> [text show=t]error=yes[/text]> [/hideif]> [/listchars]> > Thanks for the catch Stuart!> > :)> > Sincerely,> Kenneth Grome> > > >> 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=webdn>>> 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
Associated Messages, from the most recent to the oldest:
Now you are on a winner :)On 14/07/2011, at 9:39 AM, Kenneth Grome wrote:> Fixed it. Needed the [char] tag urled. This works:> > [text show=t]error=no[/text]> [listchars chars=[url][value][/url]]> [hideif 0123456789^[url][char][/url]]> [text show=t]error=yes[/text]> [/hideif]> [/listchars]> > Thanks for the catch Stuart!> > :)> > Sincerely,> Kenneth Grome> > > >> 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=webdn>>> 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
Stuart Tremain
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:
Sendmail and textarea (1998)
Error (1997)
Another issue with [Date format] (1998)
Re:What file? (1997)
question: webmerchant connection (1997)
Error Log.db --however (1997)
More on the email templates (1997)
Document Contains No Data! (1997)
NT [delete] (1998)
Creating a back button (1999)
Missing from Docs [folderName] (1997)
Weird Math and SV (1997)
WebCat2b13MacPlugin - nested [xxx] contexts (1997)
[SearchString] problem with [search] context (1997)
using showpage and showcart commands (1996)
multipart part 2 (2004)
NT Version on IIS 4.0 (1997)
WebCat2b15MacPlugin - showing [math] (1997)
Missing contexts on NT (1997)
unsubscribe (1997)