SlideShare a Scribd company logo
Submit Search
Upload
Login
Signup
The world without float literal
Report
Kenta Murata
Follow
CRO at Xica Co., Ltd.
Jul. 19, 2011
•
0 likes
•
1,016 views
1
of
38
The world without float literal
Jul. 19, 2011
•
0 likes
•
1,016 views
Download Now
Download to read offline
Report
Technology
Education
Kenta Murata
Follow
CRO at Xica Co., Ltd.
Recommended
Social media oxford_june_2011
tutor2u
1K views
•
36 slides
The world without the literal notation for floating-point numbers
Kenta Murata
1.2K views
•
38 slides
Let's begin Behavior Driven Development using RSpec
Kenta Murata
1.6K views
•
87 slides
Ruby 1.9.3 の新機能と変更点
Kenta Murata
3.6K views
•
65 slides
Ruby 拡張モジュール入門
Kenta Murata
3.6K views
•
23 slides
関数型プログラミングの世界
Kenta Murata
3.7K views
•
64 slides
More Related Content
Similar to The world without float literal
Ferramentas do mundo Rails - Campus Party 2011
Fabio Akita
770 views
•
201 slides
Uma visão do mundo rails campus party 2011 - fabio akita
Campus Party Brasil
583 views
•
201 slides
Vinterminglet #SSMX
Johan Ronnestam
1.9K views
•
105 slides
NeedleInsights Presentation - part 2
sascon
463 views
•
27 slides
animações e jogos além do canvas
Andrews Medina
1.2K views
•
36 slides
Apps4Academics: iPhone/iPad apps & mobile web sites for your Academic Life
Nicole Hennig
963 views
•
81 slides
Similar to The world without float literal
(17)
Ferramentas do mundo Rails - Campus Party 2011
Fabio Akita
•
770 views
Uma visão do mundo rails campus party 2011 - fabio akita
Campus Party Brasil
•
583 views
Vinterminglet #SSMX
Johan Ronnestam
•
1.9K views
NeedleInsights Presentation - part 2
sascon
•
463 views
animações e jogos além do canvas
Andrews Medina
•
1.2K views
Apps4Academics: iPhone/iPad apps & mobile web sites for your Academic Life
Nicole Hennig
•
963 views
2011 0419 presentation for where2
robmbailey
•
247 views
Co kodér očekává od programátora a co programátor od kodéra?
Martin Michálek
•
2.7K views
Behind The Brandtag
Nametag Scott Ginsberg
•
612 views
Nigeria & Designing for the Mobile Web
Zi Bin Cheah
•
499 views
Presentation Orange ftgroup the future of mobile
Vincent Everts
•
1.2K views
#bgeeks11 presentation draft v2
Rohan Gunatillake
•
452 views
Game design 101 by Dr Malcom Ryan
PublicLibraryServices
•
592 views
NaN, Zero, & Infinities
Kevin Munc
•
526 views
Conversion conference nyc-kaplan-personas-final
FutureNow Inc.
•
1.1K views
Paper prototyping
Erik Duval
•
379 views
Technobabble or Technobrilliance
Social Media Solutions LLC
•
855 views
More from Kenta Murata
Rubyをたのしくするために私が考えていること
Kenta Murata
1.9K views
•
97 slides
Ruby の懸案事項
Kenta Murata
2.6K views
•
38 slides
5分弱で分かる量子ビット
Kenta Murata
6.7K views
•
32 slides
Rubykaigi2010mrkn bigdecimal
Kenta Murata
1K views
•
52 slides
Ruby における絵文字エンコーディング間の相互変換ダイアグラム (案)
Kenta Murata
800 views
•
1 slide
校内勉強会のススメ An encouragement to hold workshops In your school
Kenta Murata
1.6K views
•
50 slides
More from Kenta Murata
(12)
Rubyをたのしくするために私が考えていること
Kenta Murata
•
1.9K views
Ruby の懸案事項
Kenta Murata
•
2.6K views
5分弱で分かる量子ビット
Kenta Murata
•
6.7K views
Rubykaigi2010mrkn bigdecimal
Kenta Murata
•
1K views
Ruby における絵文字エンコーディング間の相互変換ダイアグラム (案)
Kenta Murata
•
800 views
校内勉強会のススメ An encouragement to hold workshops In your school
Kenta Murata
•
1.6K views
Ruby の標準乱数生成器とその改善案
Kenta Murata
•
4K views
5分で分かる Measure
Kenta Murata
•
1.9K views
Measure 単位付き数値ライブラリ
Kenta Murata
•
1.5K views
情報学特論#02
Kenta Murata
•
876 views
情報学特論#01
Kenta Murata
•
816 views
北海道関数型言語勉強会@札幌#2のお知らせ
Kenta Murata
•
769 views
Recently uploaded
h2 meet pdf test.pdf
JohnLee971654
61 views
•
4 slides
Netwitness RT - Don’t scratch that patch.pptx
Stefano Maccaglia
101 views
•
24 slides
Scaling out with WordPress
Konstantin Kovshenin
57 views
•
55 slides
How resolve Gem dependencies in your code?
Hiroshi SHIBATA
98 views
•
50 slides
Machine learning with quantum computers
Speck&Tech
83 views
•
20 slides
LLaMA 2.pptx
RkRahul16
36 views
•
19 slides
Recently uploaded
(20)
h2 meet pdf test.pdf
JohnLee971654
•
61 views
Netwitness RT - Don’t scratch that patch.pptx
Stefano Maccaglia
•
101 views
Scaling out with WordPress
Konstantin Kovshenin
•
57 views
How resolve Gem dependencies in your code?
Hiroshi SHIBATA
•
98 views
Machine learning with quantum computers
Speck&Tech
•
83 views
LLaMA 2.pptx
RkRahul16
•
36 views
GDSC Cloud Lead Presentation.pptx
AbhinavNautiyal8
•
54 views
Take Control of Podcasting thanks to Open Source and Podcasting 2.0
🎙 Benjamin Bellamy
•
64 views
Demystifying ML/AI
Matthew Reynolds
•
38 views
Product Research Presentation-Maidy Veloso.pptx
MaidyVeloso
•
28 views
How to use the Cataloguing Code Ethics at your day job : a hands-on workshop ...
CILIP MDG
•
45 views
ISO Survey 2022: ISO 27001 certificates (ISMS)
Andrey Prozorov, CISM, CIPP/E, CDPSE. LA 27001
•
108 views
Easy Salesforce CI/CD with Open Source Only - Dreamforce 23
NicolasVuillamy1
•
343 views
Getting your enterprise ready for Microsoft 365 Copilot
Vignesh Ganesan I Microsoft MVP
•
146 views
web test repair.pptx
YuanzhangLin
•
40 views
Product Listing Presentation_Cathy.pptx
CatarinaTorrenuevaMa
•
75 views
Privacy in the era of quantum computers
Speck&Tech
•
77 views
Framing Few Shot Knowledge Graph Completion with Large Language Models
MODUL Technology GmbH
•
39 views
Mitigating Third-Party Risks: Best Practices for CISOs in Ensuring Robust Sec...
TrustArc
•
51 views
Understanding Wireguard, TLS and Workload Identity
Christian Posta
•
173 views
The world without float literal
1.
The world without
the literal notation for floating-point numbers , Kenta Murata GeneticLab Co., Ltd. Tuesday, July 19, 2011 1
2.
CRuby Committer
(BigDecimal) Ruby Sapporo Kosen Conf http://www.flickr.com/photos/koichiroo/5244581973/ Tuesday, July 19, 2011 2
3.
Tuesday, 1 2010 3
July 19, 2011 3
4.
RubyKaigi
n !! Tuesday, 1 2010 3 July 19, 2011 4
5.
Ruby
04 Sapporo RubyKaigi 04 Summer 2012 Tuesday, July 19, 2011 5
6.
I have some
question. Tuesday, July 19, 2011 6
7.
Do you use
Float values? Tuesday, July 19, 2011 7
8.
Do you understand
Float well? Tuesday, July 19, 2011 8
9.
Float is too
difficult. Tuesday, July 19, 2011 9
10.
Reading difficulty Tuesday, July
19, 2011 10
11.
ruby-1.9.2-p290 :001 >
76287755398823936.0 => 76287755398823940.0 ruby-1.9.2-p290 :002 > Tuesday, July 19, 2011 11
12.
Comparing difficulty Tuesday, July
19, 2011 12
13.
ruby-1.9.2-p290 :001 >
12.4 * 1.05 == 13.02 => false ruby-1.9.2-p290 :002 > 12.4 * 1.05 => 13.020000000000001 ruby-1.9.2-p290 :003 > Tuesday, July 19, 2011 13
14.
Representation
difference Tuesday, July 19, 2011 14
15.
Human: Decimal
Internal: Binary Tuesday, July 19, 2011 15
16.
Concept
difference Tuesday, July 19, 2011 16
17.
We think
Float is a number. Tuesday, July 19, 2011 17
18.
It is real
that Float is a range. Tuesday, July 19, 2011 18
19.
They’re troublesome Tuesday, July
19, 2011 19
20.
There is a
solution Tuesday, July 19, 2011 20
21.
Why not use
Rational. Tuesday, July 19, 2011 21
22.
It is difficult,
too. Tuesday, July 19, 2011 22
23.
Ruby doesn’t have
any literal notations for Rational Tuesday, July 19, 2011 23
24.
Does a fractional
notation solve the problems? Tuesday, July 19, 2011 24
25.
No! Tuesday, July 19,
2011 25
26.
We naturally use
decimal point notation. Tuesday, July 19, 2011 26
27.
We need a
decimal- point notation for representing a Rational. Tuesday, July 19, 2011 27
28.
ruby--p290 :001 >
13.02.class => Rational ruby--p290 :001 > 12.4 * 1.05 == 13.02 => true ruby-1.9.2-p290 :002 > 12.4 * 1.05 => 13.02 ruby-1.9.2-p290 :003 > 13.02 / 3 => (217/50) Tuesday, July 19, 2011 28
29.
Do you worry
about Rational is slow? Tuesday, July 19, 2011 29
30.
We can optimize
for denominators of 10n Tuesday, July 19, 2011 30
31.
Float isn’t as
so fast as you think Tuesday, July 19, 2011 31
32.
If you need
fast Float calculation Tuesday, July 19, 2011 32
33.
Write it in
C as extension library Tuesday, July 19, 2011 33
34.
If you need
to calculate with arrays of Float Tuesday, July 19, 2011 34
35.
Use NArray Tuesday, July
19, 2011 35
36.
Rational may be
what you want Tuesday, July 19, 2011 36
37.
This talk’s background,
demonstrations, and more detail descriptions Tuesday, July 19, 2011 37
38.
Tuesday, July 19,
2011 38