# Floating point exception by "".center(1, "\\x80".force\_encoding("utf-8")\*40)

**URL:** <https://www.ruby-forum.com/t/floating-point-exception-by-center-1-x80-force-encoding-utf-8-40/129294>\
**Category:** Development\
**Created:** [February 16, 2008, 6:39am UTC](https://www.ruby-forum.com/t/floating-point-exception-by-center-1-x80-force-encoding-utf-8-40/129294 "2008-02-16T06:39:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanaka\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c67d28/32.png) [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Post date:** [February 16, 2008, 6:39am UTC](https://www.ruby-forum.com/t/floating-point-exception-by-center-1-x80-force-encoding-utf-8-40/129294/1 "2008-02-16T06:39:16Z")

</div>

e$B0J2\<$N$h$&$K$9$k$HIbF0\>.?tE@Nc30$GMn$A$^$9!#e(B

% ./ruby -ve ‘"".center(1, “\x80”.force\_encoding(“utf-8”)\*40)’  
ruby 1.9.0 (2008-02-16 revision 15502) [i686-linux]  
zsh: floating point exception ./ruby -ve ‘"".center(1,  
“\x80”.force\_encoding(“utf-8”)\*40)’
