how to give the precision to float variable in java code example Example: java float precision //Float precision is 6 to 7 decimal digits