Thread: Convert a Floating Point Number to a String

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    54

    Convert a Floating Point Number to a String

    Hello, is there any way to go about converting a floating point number to a string. I could probably write a function to do it myself, since i know the precision will always be up to 3 decimal places. 1.0 to 0.001. Just wondering if there is an easier way to do it.

  2. #2
    Registered User
    Join Date
    Feb 2005
    Posts
    54
    I figured it out, sprintf.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OOP Question DB Access Wrapper Classes
    By digioz in forum C# Programming
    Replies: 2
    Last Post: 09-07-2008, 04:30 PM
  2. Replies: 8
    Last Post: 04-25-2008, 02:45 PM
  3. adding a number to a number
    By bigmac(rexdale) in forum C Programming
    Replies: 11
    Last Post: 10-24-2007, 12:56 PM