jcouyang / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

goog.format.numBytesToString does not add 'B' suffix #342

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. Call goog.format.numBytesToString(123);

What is the expected output? What do you see instead?
Expected '123B', but '123' returned.

What version of the product are you using? On what operating system?
SVN revision 1083

The same result with goog.format.numBytesToString(123, 2, 'B'); and 
goog.format.numBytesToString(123, 2, true);

Original issue reported on code.google.com by andrey....@gmail.com on 1 Jul 2011 at 9:47

GoogleCodeExporter commented 9 years ago
This path works for me.

Original comment by andrey....@gmail.com on 1 Jul 2011 at 10:06

Attachments:

GoogleCodeExporter commented 9 years ago
Can't take patch yet -- need CLA signed.  See contributor wiki page.

JSDoc seems to specify this behavior, as does the code.

Original comment by nn...@google.com on 9 May 2012 at 10:30

GoogleCodeExporter commented 9 years ago

Original comment by chrishe...@google.com on 9 May 2012 at 10:31

GoogleCodeExporter commented 9 years ago

Original comment by vbha...@google.com on 15 May 2012 at 10:47