Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing bug in %s where 0.05% would show up as 0.5%

  • Loading branch information...
commit cbbea9b5d1a693b5ee2ac38e8f49dcbda1358ea0 1 parent 7c1cc1a
Mark Kahn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  encode_folder
View
2  encode_folder
@@ -173,7 +173,7 @@ Number.prototype.toPercent = function(){
return (
+ ( 0|this )
+ '.'
- + (( 0|this%1*100 ) || '0' )
+ + ((( 0|this%1*100 ) || 0 ) + 100 ).toString().substr(1)
+ '%'
);
};
Please sign in to comment.
Something went wrong with that request. Please try again.