How to get floats value without including exponential notation

Hello ,

   public double num;
   num = 9999987991231239f;

   Debug.Log(num.ToString());     //Doesn't print the number  

   text.text = num.ToString();    //Doesn't print the number  

I have tried num.ToString("0");

but nothing is helping.

I want to perform some calculations on that number (displayed on label ).

I want float/double to be printed without exponential notation. Plz Help

You should use num.ToString("F"). You can specify the number of decimal places also by using num.ToString("Fn") where n is your number. Or you can use a custom format specifier like num.ToString("0.#######").