from double to float android studio code example Example: from double to float android studio float myFloat = (float) doubleVar;