Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. Calculable result= new ExpressionBuilder(s1).build();
  2. size.setText(Double.toString(result.calculate()));
  3. size_num = result.calculate();
  4.  
  5. // ... snip ...
  6.  
  7. for (int i = 0; i < chars.length; i++) {
  8.  
  9. // ... snip ...
  10.  
  11. if (Character.isDigit(c)) { // matches digit
  12.  
  13. // ... snip ...
  14.  
  15. while (chars.length > i + numberLen) {
  16. if (isDigitOrDecimalSeparator(chars[i + numberLen])) { // matches '.'
  17.  
  18. // ... snip ...
  19.  
  20. s1 = s1.replace("t", "");
  21. Calculable result= new ExpressionBuilder(s1).build();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement