# \[Bug #6\] sprintf() of %f on Windows(MSVCRT)

**URL:** <https://www.ruby-forum.com/t/bug-6-sprintf-of-f-on-windows-msvcrt/184195>\
**Category:** Development\
**Created:** [February 26, 2010, 2:32pm UTC](https://www.ruby-forum.com/t/bug-6-sprintf-of-f-on-windows-msvcrt/184195 "2010-02-26T14:32:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yusuke\_E](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/f08c70/32.png) [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Post date:** [February 26, 2010, 2:32pm UTC](https://www.ruby-forum.com/t/bug-6-sprintf-of-f-on-windows-msvcrt/184195/1 "2010-02-26T14:32:56Z")

</div>

e$B%A%1%C%He(B #6 e$B$,99?7$5$l$^$7$?!#e(B (by Yusuke E.)

Target version 1.9.1 Release Candidatee$B$+$ie(B1.9.2e$B$KJQ99e(B  
ruby -v ruby 1.9.2dev (2010-02-26) [i386-mingw32]e$B$K%;%C%He(B

e$B1sF#$G$9!#e(B

e$B8E$$%A%1%C%H$G$9$,e(B reopen e$B$7$^$9!#e(B

> test\_to\_s(TestFloat) [(snip)/test/ruby/test\_float.rb:126]:  
> \<“1.0e+14”\> expected but was  
> \<“1.0e+014”\>.

mingw32 e$B$G:#$G$b:F8=$9$k$h$&$G$9!#e(B  
mingw e$B$G$OD\>$C$F$J$+$C$?$N$+e(B regression e$B$J$N$+$OCN$j$^$;$s!#e(B

$ ./ruby test/ruby/test\_float.rb  
Loaded suite test/ruby/test\_float  
Started  
…F…  
Finished in 1.019000 seconds.

1. Failure:  
test\_to\_s(TestFloat) [test/ruby/test\_float.rb:126]:  
\<“1.0e+18”\> expected but was  
\<“1.0e+018”\>.

31 tests, 1120 assertions, 1 failures, 0 errors, 0 skips

## – Yusuke E. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

[http://redmine.ruby-lang.org/issues/show/6](http://redmine.ruby-lang.org/issues/show/6)
