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. The Lounge
  3. Negative number representation

Negative number representation

Scheduled Pinned Locked Moved The Lounge
question
9 Posts 8 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.
  • J Offline
    J Offline
    Jim Turner 0
    wrote on last edited by
    #1

    Does anyone know of any culture/language where the default negative number representation is not a minus sign preceding the number?

    G S T D M 6 Replies Last reply
    0
    • J Jim Turner 0

      Does anyone know of any culture/language where the default negative number representation is not a minus sign preceding the number?

      G Offline
      G Offline
      Graham Bradshaw
      wrote on last edited by
      #2

      I think there must be some, since Windows locale information supports them. See http://msdn.microsoft.com/en-us/library/bb507201.aspx[^] and look at LOCALE_INEGSIGNPOSN and LOCALE_INEGNUMBER.

      1 Reply Last reply
      0
      • J Jim Turner 0

        Does anyone know of any culture/language where the default negative number representation is not a minus sign preceding the number?

        S Offline
        S Offline
        Simon P Stevens
        wrote on last edited by
        #3

        Not a culture/language as such, but I've seen financial documents (P&L accounts etc) where negative numbers are either indicated by being placed in brackets (and no minus sign), or with a minus sign after the number.

        Simon

        L 1 Reply Last reply
        0
        • S Simon P Stevens

          Not a culture/language as such, but I've seen financial documents (P&L accounts etc) where negative numbers are either indicated by being placed in brackets (and no minus sign), or with a minus sign after the number.

          Simon

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #4

          Simon Stevens wrote:

          negative numbers are either indicated by being placed in brackets (and no minus sign),

          Or in RED :)

          xacc.ide - now with TabsToSpaces support
          IronScheme - 1.0 alpha 4a out now (29 May 2008)

          S 1 Reply Last reply
          0
          • L leppie

            Simon Stevens wrote:

            negative numbers are either indicated by being placed in brackets (and no minus sign),

            Or in RED :)

            xacc.ide - now with TabsToSpaces support
            IronScheme - 1.0 alpha 4a out now (29 May 2008)

            S Offline
            S Offline
            Simon P Stevens
            wrote on last edited by
            #5

            leppie wrote:

            Or in RED

            Well they might have been, but we didn't have colour printers :laugh:

            Simon

            1 Reply Last reply
            0
            • J Jim Turner 0

              Does anyone know of any culture/language where the default negative number representation is not a minus sign preceding the number?

              T Offline
              T Offline
              Tomz_KV
              wrote on last edited by
              #6

              When you say "number", you may automatically imply the Arabic numbers: 1, 2, 3... In other cultures, numbers are not expressed like this. Therefore, minus sign is not applicable. For Arabic numbers, in accounting, the negative numbers may be shown in red or in perentices without a minus sign.

              TOMZ_KV

              1 Reply Last reply
              0
              • J Jim Turner 0

                Does anyone know of any culture/language where the default negative number representation is not a minus sign preceding the number?

                D Offline
                D Offline
                Dy
                wrote on last edited by
                #7

                Don't know of a culture language that does that, but have seen users do it via the control panel (Region & Language options -> Customise)

                - Dy

                1 Reply Last reply
                0
                • J Jim Turner 0

                  Does anyone know of any culture/language where the default negative number representation is not a minus sign preceding the number?

                  M Offline
                  M Offline
                  Member 96
                  wrote on last edited by
                  #8

                  Yes, the U.S., Canada, Great Britain, any country with accountants working in them. Accountants and accounting apps commonly display negative numbers like this ($5.50).


                  "It's so simple to be wise. Just think of something stupid to say and then don't say it." -Sam Levenson

                  1 Reply Last reply
                  0
                  • J Jim Turner 0

                    Does anyone know of any culture/language where the default negative number representation is not a minus sign preceding the number?

                    R Offline
                    R Offline
                    Roger Wright
                    wrote on last edited by
                    #9

                    To ensure backward compatibility with VisiCalc you'll need to have the option to display negative amounts with the minus sign following the number. Of course, you'll also need to make your app run on CP/M. ;)

                    "A Journey of a Thousand Rest Stops Begins with a Single Movement"

                    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