in reply to Re: Need some wisdom on strings to numbers
in thread Need some wisdom on strings to numbers
Thanks all for the prompt reply. I am passing the hash to an in-memory database (MongoDB) which serializes the hash into a json style structure. This causes the first variable (123) to remain as an int but the second one 123.1 gets in as a string and I think this is because the hash stores this value as a string. Any suggestions?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Need some wisdom on strings to numbers
by decebel (Acolyte) on Oct 07, 2009 at 03:58 UTC | |
by alexlc (Beadle) on Oct 07, 2009 at 12:02 UTC |