Skip to content

Commit

Permalink
moves the method
Browse files Browse the repository at this point in the history
  • Loading branch information
UrsZeidler committed Apr 27, 2014
1 parent 5a633cc commit d7ffb88
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,7 @@ public static String powerPointsToFloat(int essenz) {
* @return
*/
public static String essenzToFloat(int essenz) {
float f = essenz / 100f;
String string = String.format("%.2f", f);//$NON-NLS-1$
return string;
return ShadowrunTools.essenzToFloat(essenz);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,4 +423,16 @@ public static int calcKiPowerSum(List<KiKraft> kikraft) {
return sum;
}

/**
* Create a float string from an int with base 100.
*
* @param essenz
* @return
*/
public static String essenzToFloat(int essenz) {
float f = essenz / 100f;
String string = String.format("%.2f", f);//$NON-NLS-1$
return string;
}

}

0 comments on commit d7ffb88

Please sign in to comment.