Skip to content

Instantly share code, notes, and snippets.

@fatorx
Created June 17, 2015 13:35
Show Gist options
  • Save fatorx/1826e9acedf4ec269e4b to your computer and use it in GitHub Desktop.
Save fatorx/1826e9acedf4ec269e4b to your computer and use it in GitHub Desktop.
Java Math - Return point float number between two integers
int seconds = 88200;
int secHour = 3600;
float val = ( (float) seconds / (float) secHour);
System.out.println( val );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment