Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Float on Currency format..

Float on Currency format..

Scheduled Pinned Locked Moved Database
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Widgets
    wrote on last edited by
    #1

    Guys is there any way that i make an Float Column output into Currency Format.. withoug rounding e.g. Float data is: Name Price Ambie 505.5560 James 44.240 Nicolas .5275 Moyano 20 OUTPUT Ambie 505.55 James 44.24 Nicolas .52 Moyano 20.00

    P W 2 Replies Last reply
    0
    • W Widgets

      Guys is there any way that i make an Float Column output into Currency Format.. withoug rounding e.g. Float data is: Name Price Ambie 505.5560 James 44.240 Nicolas .5275 Moyano 20 OUTPUT Ambie 505.55 James 44.24 Nicolas .52 Moyano 20.00

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Whatcha using? Anyway, always use integers for currency, floating point just doesn't cut it.

      1 Reply Last reply
      0
      • W Widgets

        Guys is there any way that i make an Float Column output into Currency Format.. withoug rounding e.g. Float data is: Name Price Ambie 505.5560 James 44.240 Nicolas .5275 Moyano 20 OUTPUT Ambie 505.55 James 44.24 Nicolas .52 Moyano 20.00

        W Offline
        W Offline
        wienzzz
        wrote on last edited by
        #3

        Guys is there any way that i make an Float Column output into Currency Format.. withoug rounding
        e.g.
        Float data is:

        Name Price
        Ambie 505.5560
        James 44.240
        Nicolas .5275
        Moyano 20

        OUTPUT
        Ambie 505.55
        James 44.24
        Nicolas .52
        Moyano 20.00

        if you trying to display in textbox or something, I think you can set the formatting display on that textbox for just only 2 decimals. question : do you want retrieve float data and display in currency? OR do you want to insert the float data with only 2 decimals? CMIIW

        Mail me at erwin@holyknight.us

        W 1 Reply Last reply
        0
        • W wienzzz

          Guys is there any way that i make an Float Column output into Currency Format.. withoug rounding
          e.g.
          Float data is:

          Name Price
          Ambie 505.5560
          James 44.240
          Nicolas .5275
          Moyano 20

          OUTPUT
          Ambie 505.55
          James 44.24
          Nicolas .52
          Moyano 20.00

          if you trying to display in textbox or something, I think you can set the formatting display on that textbox for just only 2 decimals. question : do you want retrieve float data and display in currency? OR do you want to insert the float data with only 2 decimals? CMIIW

          Mail me at erwin@holyknight.us

          W Offline
          W Offline
          Widgets
          wrote on last edited by
          #4

          i want to retreive float data and display in currency? but with this format #,###,##0.00... can it be?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups