Thread: Convert float to string in order to use strlen()

  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
    4,183
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  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, 09:21 PM
  5. convert float to string
    By vthokienj in forum C++ Programming
    Replies: 3
    Last Post: 12-14-2002, 11:33 AM