data type for Higher precision numeric value

I need to get a decimal number (upto 6 decimal places) in a variable and divide it with an integer to get another decimal number of upto 6 decimal places.

I have tried using "float" & "double" which only gives me number upto 2 decimal places.

float a = 23.456789;

This should show me the number 23.456789 instead it shows only 23.46.
What datatype should i choose to get the required result?



Might help.

Tom.. :slight_smile:

Thanks Tom :slight_smile: it worked