Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save padhyakash/f84dbd203ec85e00625e5f7f423dfb68 to your computer and use it in GitHub Desktop.
Save padhyakash/f84dbd203ec85e00625e5f7f423dfb68 to your computer and use it in GitHub Desktop.
var a;
var b;
var c = ( a * (Math.pow(b, 0.85))); if answer is 4.89
4.89 = 4 hours and 0.89 * 0.6 == 53.4 == 53 minutes I want it to say: 4h53m (for 4.89)
here the var c will return 4h53m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment