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. Other Discussions
  3. IT & Infrastructure
  4. function Isnumber Accept + Sign

function Isnumber Accept + Sign

Scheduled Pinned Locked Moved IT & Infrastructure
csharptutorialquestion
4 Posts 2 Posters 5 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hello to All, In VB.Net and C# Isnumber(String) accept + sign for number value. Example : Isnumber ("123456+") Output : True Can any one tell me what is the reason for. Thanks & Regard Anubhava Dimri

    If you can think then I Can.

    L P 3 Replies Last reply
    0
    • L Lost User

      Hello to All, In VB.Net and C# Isnumber(String) accept + sign for number value. Example : Isnumber ("123456+") Output : True Can any one tell me what is the reason for. Thanks & Regard Anubhava Dimri

      If you can think then I Can.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      eg_Anubhava wrote:

      Example : Isnumber ("123456+")

      According to MSDN it should be Isnumber("123456+", index), where index is the index to the character to test. Perhaps you need IsDigit() for your test.

      1 Reply Last reply
      0
      • L Lost User

        Hello to All, In VB.Net and C# Isnumber(String) accept + sign for number value. Example : Isnumber ("123456+") Output : True Can any one tell me what is the reason for. Thanks & Regard Anubhava Dimri

        If you can think then I Can.

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

        Because sometimes the sign is put at the end?

        1 Reply Last reply
        0
        • L Lost User

          Hello to All, In VB.Net and C# Isnumber(String) accept + sign for number value. Example : Isnumber ("123456+") Output : True Can any one tell me what is the reason for. Thanks & Regard Anubhava Dimri

          If you can think then I Can.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Depending on the culture, + sign may appear at the end of a number.

          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