# Mathn and Time.at(0.0)

**URL:** <https://www.ruby-forum.com/t/mathn-and-time-at-0-0/190309>\
**Category:** Development\
**Created:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/mathn-and-time-at-0-0/190309 "2010-06-17T16:22:46Z")\
**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:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/mathn-and-time-at-0-0/190309/1 "2010-06-17T16:22:46Z")

</div>

mathn e$B$N1F6A2\<$G$O!"e(BTime.at(0.0)  
e$B$,\<:GT$9$k$3$H$K5$$,$D$$$F$7$^$$$^$7$?!#e(B

-e:1:in `at': can't convert Float to Rational (Float#to_r gives Fixnum) (TypeError) from -e:1:in`’

e$B860x$O!"e(Brb\_convert\_type(v, T\_RATIONAL, “Rational”, “to\_r”)  
e$B$Ge(B 0.0 e$B$re(B  
e$BM-M}?t$KJQ49$7$h$&$H$7$?$H$-$K!"e(B(mathn e$B$G:FDj5A$5$l$?e(B) to\_r  
e$B$,e(B Fixnum e$B$rJV$9e(B  
e$B$N$,860x$G$9!#e(B

rb\_convert\_type  
e$B$r%3%T!\<!&JQ99$7$?$b$N$r;H$($P$I$&$K$+$G$-$k$H;W$$$^$9$,!“e(B  
e$B$b$&$A$g$C$H%^%7$JJ}K!$O$”$k$G$7$g$&$+!#e(B
