Re: [WebDNA] divisible by 1
This WebDNA talk-list message is from 2011
It keeps the original formatting.
numero = 106950
interpreted = N
texte = 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=20> matter what numbers you multiply by 1 ... but I'm trying to=20> get whole numbers here.>=20> Sincerely,> Kenneth Grome>=20>=20>=20>> I usually multiply by 1 and then compare the val before>> and after.>>=20>> Marc>>=20>> 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.>>>=20>>> 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:>>>>=20>>>> [showif [value]\1]it's a whole number[/showif]>>>>=20>>>> ... but when the value is 123.45 it says it's a whole>>>> number when it is not.>>>>=20>>>> So what technique do you folks use to determine>>>> whether the value is a whole number?>>>>=20>>>> 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>>>=20>>> - Govinda>>> -------------->>> Old WebDNA talklist archives:>>> http://dev.webdna.us/TalkListArchive/index.tpl?db=3Dwebdn>>> a-talk>>>=20>>> ------------------------------------------------------->>> -- 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=3Dwebdna-talk
Associated Messages, from the most recent to the oldest:
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=20> matter what numbers you multiply by 1 ... but I'm trying to=20> get whole numbers here.>=20> Sincerely,> Kenneth Grome>=20>=20>=20>> I usually multiply by 1 and then compare the val before>> and after.>>=20>> Marc>>=20>> 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.>>>=20>>> 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:>>>>=20>>>> [showif [value]\1]it's a whole number[/showif]>>>>=20>>>> ... but when the value is 123.45 it says it's a whole>>>> number when it is not.>>>>=20>>>> So what technique do you folks use to determine>>>> whether the value is a whole number?>>>>=20>>>> 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>>>=20>>> - Govinda>>> -------------->>> Old WebDNA talklist archives:>>> http://dev.webdna.us/TalkListArchive/index.tpl?db=3Dwebdn>>> a-talk>>>=20>>> ------------------------------------------------------->>> -- 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=3Dwebdna-talk
Govinda
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:
WebCatalog [FoundItems] Problem - AGAIN - (1997)
WC 2.0 frames feature (1997)
Regular expression to match email address (2003)
How About Credit Card Transactions (1998)
Need WebDNA that crashes server for testing (2000)
includes and cart numbers (1997)
Sku numbers (1997)
Ampersand (1997)
[WebDNA] TCPConnect Problem (2010)
READFILE command? (1998)
WebCatalog2 Feature Feedback (1996)
WebDNA 5 & iTools 7 (2003)
Re:Copyright ? (1997)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
Server replication (1998)
2.1 bugs left over from beta cycle (1998)
Practice runs ? (1997)
[ot] Dreamweaver & Mac OSX (2002)
WC2b15 File Corruption (1997)
Roundup function? (1997)