Convert float to string in order to use strlen()

This is a discussion on Convert float to string in order to use strlen() within the C Programming forums, part of the General Programming Boards category; Hi, can someone please give me a really simple way of converting the following float to a string so I ...

  1. #1
    Registered User
    Join Date
    Apr 2013
    Posts
    12

    Convert float to string in order to use strlen()

    Hi, can someone please give me a really simple way of converting the following float to a string so I can take strlen()?

    float a = 53213421;

    strlen(a)?

    I have looked up solutions but they are either too long or they confuse me.

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    2,694
    "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the Universe is winning." Rick Cook

  3. #3
    Registered User
    Join Date
    Apr 2013
    Posts
    12
    thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to convert float to string without using sprintf()
    By liyanhong in forum C Programming
    Replies: 6
    Last Post: 10-24-2010, 03:51 PM
  2. Convert string to float
    By ching13 in forum C Programming
    Replies: 6
    Last Post: 05-07-2010, 02:58 PM
  3. Convert string to float?
    By tesla in forum C++ Programming
    Replies: 7
    Last Post: 09-22-2009, 05:39 AM
  4. help in convert String to float
    By kahwai1984 in forum C++ Programming
    Replies: 7
    Last Post: 03-19-2006, 08:21 PM
  5. convert float to string
    By vthokienj in forum C++ Programming
    Replies: 3
    Last Post: 12-14-2002, 10:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21