Is it best to use Currency or Number for dollar values?

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Is it best to use Currency or Number for dollar values?

    I have been using Currency as the data type of choice for allowing clients to
    update dollar values (rate, fee, price) into an MS Access database. It seems to
    me though that I should be using just a number field. Then use CF to handle how
    it is displayed. Does any body have any words of wisdom on this?

    If so, what is the 'Best' way to define the number data type? (Long Integer,
    Integer, Double, Decimal, etc..)

    Thanks in advance,

    Rock Moore

    UpstateWeb Guest

  2. Similar Questions and Discussions

    1. #40174 [NEW]: is_numeric with currency values
      From: sehh at altered dot com Operating system: Fedora Core Linux PHP version: 5.2.0 PHP Bug Type: Math related Bug...
    2. Convert currency to number error
      Hi, I am having problems converting from a currency to a number. The error occurs when the form is submitted but it is fine when I remove the...
    3. Dollar sign not displaying with cfchartlabelformat=currency
      Environment: ColdFusion MX 6.1 (6,1,0,83762) on JRun 4 w/ Updater 4 Solaris 9 Sun Java version 1.4.2-b28 (default installed version w/ CFMX and...
    4. Currency values display problems
      I'm still working on a intranet site builded on IBUYSPORTAL framework. This site is configured with NT-Autorization and running with impersonate =...
    5. format number into currency format ($1,000,000.00)
      SELECT '$' + CONVERT(VARCHAR, CONVERT(MONEY, 1000000), 1) "lamP" <phantlam@yahoo.com> wrote in message...
  3. #2

    Default Re: Is it best to use Currency or Number for dollarvalues?

    I would stick with Currency , especially as your clients need to interface
    directly with your database. Then, use Coldfusion to strip out the currency
    symbol if and where necessary. This seems to me a more intuitive approach,
    involving much less work than the change you propose.

    BKBK Guest

  4. #3

    Default Re: Is it best to use Currency or Number for dollarvalues?

    If you DO decide on non-Currency, be aware that even though stupid Access
    allows you to specify decimals on Integer and Long Integer (should be greyed
    out IMO), when you actually insert something with decimals, the decimals are
    tossed.

    JMGibson3 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139