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. General Programming
  3. C#
  4. double to string without point [SOLVED]

double to string without point [SOLVED]

Scheduled Pinned Locked Moved C#
22 Posts 10 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.
  • D Dave Kreskowiak

    I'll do it in a 1/3 of a line at 640x480. If you want to beat that, you'll have to "name that tune"!

    A guide to posting questions on CodeProject[^]
    Dave Kreskowiak

    F Offline
    F Offline
    fjdiewornncalwe
    wrote on last edited by
    #21

    The current one playing is Lennon's version of Stand by Me, but I sing it I'll clear the room.

    I wasn't, now I am, then I won't be anymore.

    1 Reply Last reply
    0
    • P Pierre besquent

      Hi everybody, I wanna have the smallest code to conver a double to a string without the point of digits Exple: 12.010 --->1201 ty

      modified on Friday, March 18, 2011 6:03 AM

      C Offline
      C Offline
      charles henington
      wrote on last edited by
      #22

      Let's say that your Double is double lifeSpan.

      string ls = lifeSpan.ToString().Replace(".","");

      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