Re: using string instead of int

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



And the value in the table is ? IMO it's best to always work with the
intended type (that is int if your database column is an int)....


"mavrick_101" <mavrick101@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit dans le message
de news: 209EF7DD-B52E-4F4C-8F7B-0BF766F3035F@xxxxxxxxxxxxxxxx
Often in code, when retrieving a value from table where I don't have to do
any math calculations, I store the value in a string variable instead of
converting to an int and then storing in an int variable.

Do you guys see anything wrong with this practice?




.



Relevant Pages

  • Re: Logic C++ error. Why?
    ... |>|> int fathoms, feet, inches; ... order of evaluation is only an issue where more than one parameter ... Imo, no. ... are you saying that having named variables to store the ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Overloading of operator names - opinions sought
    ... IMO, they perform a function, but are not functions. ... standardized set of implicit types, ... add(char, char) ... add(char, int) ...
    (comp.lang.misc)
  • Re: Logic C++ error. Why?
    ... >|>int main ... order of evaluation is only an issue where more than one parameter ... > const int inches; ... None of the elaboration adds any value IMO. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Equivalency of Integral Pointers
    ... parameters be converted to void * in the calling function, ... Which IMO is unacceptable. ... I think you need to accept that the code will break if shorts have a different representation to int. ...
    (comp.lang.c)
  • Re: A funnily inconsistent behavior of int and float
    ... IMO, it oughtn't. ... ValueError: invalid literal for float(): - 345.083 ... the sign and the number while int can. ...
    (comp.lang.python)