Overview
| Artifact ID: | 49d4fd3744057a689028251f04da1d0b10097f2c |
|---|---|
| Ticket: | 1489011fffffffffffffffffffffffffffffffff
mathfuncs return strings? numbers? |
| User & Date: | kennykb on 2006-07-31 05:53:45 |
Changes
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=99768 Ouch. I don't know, either. When I put the TIP together, I was thinking only of the new numeric types (chiefly bigints) and not of strings. It's obvious that we should try to convert a string to numeric if we pass it into something (such as an arithmetic operator) that requires a number. It's also a historical fact that people use [expr {$x}] to make $x into a canonical number - it is expected that [expr 0xff] will return 255. So it appears, for well or ill, that [expr] is for numbers, and not for strings, as attractive as the latter seems. Perhaps we should TRY_CVT_TO_NUMERIC on the result of math functions? - login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"