Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.217.103
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby19 /
share /
ri /
1.9.1 /
system /
Rational /
Delete
Unzip
Name
Size
Permission
Date
Action
%2a%2a-i.ri
642
B
-rw-r--r--
2023-07-26 17:26
%2a-i.ri
590
B
-rw-r--r--
2023-07-26 17:26
%2b-i.ri
589
B
-rw-r--r--
2023-07-26 17:26
%2d-i.ri
591
B
-rw-r--r--
2023-07-26 17:26
%2f-i.ri
621
B
-rw-r--r--
2023-07-26 17:26
%3c%3d%3e-i.ri
598
B
-rw-r--r--
2023-07-26 17:26
%3d%3d-i.ri
608
B
-rw-r--r--
2023-07-26 17:26
as_json-i.ri
169
B
-rw-r--r--
2023-07-26 17:26
cdesc-Rational.ri
2.59
KB
-rw-r--r--
2023-07-26 17:26
ceil-i.ri
790
B
-rw-r--r--
2023-07-26 17:26
denominator-i.ri
599
B
-rw-r--r--
2023-07-26 17:26
fdiv-i.ri
528
B
-rw-r--r--
2023-07-26 17:26
floor-i.ri
799
B
-rw-r--r--
2023-07-26 17:26
inspect-i.ri
477
B
-rw-r--r--
2023-07-26 17:26
json_create-c.ri
183
B
-rw-r--r--
2023-07-26 17:26
numerator-i.ri
497
B
-rw-r--r--
2023-07-26 17:26
quo-i.ri
625
B
-rw-r--r--
2023-07-26 17:26
rationalize-i.ri
704
B
-rw-r--r--
2023-07-26 17:26
round-i.ri
829
B
-rw-r--r--
2023-07-26 17:26
to_d-i.ri
787
B
-rw-r--r--
2023-07-26 17:26
to_f-i.ri
482
B
-rw-r--r--
2023-07-26 17:26
to_i-i.ri
569
B
-rw-r--r--
2023-07-26 17:26
to_json-i.ri
169
B
-rw-r--r--
2023-07-26 17:26
to_r-i.ri
380
B
-rw-r--r--
2023-07-26 17:26
to_s-i.ri
438
B
-rw-r--r--
2023-07-26 17:26
truncate-i.ri
815
B
-rw-r--r--
2023-07-26 17:26
Save
Rename
U:RDoc::NormalClass[iI" Rational:ET@I"Numeric;Fo:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"EA rational number can be represented as a paired integer number;;TI"Fa/b (b>0). Where a is numerator and b is denominator. Integer a;TI"(equals rational a/1 mathematically.;To:RDoc::Markup::BlankLine o; ;[I"CIn ruby, you can create rational object with Rational, to_r or;TI"@rationalize method. The return values will be irreducible.;T@o:RDoc::Markup::Verbatim;[ I" Rational(1) #=> (1/1) ;FI" Rational(2, 3) #=> (2/3) ;FI"!Rational(4, -6) #=> (-2/3) ;FI" 3.to_r #=> (3/1) ;Fo; ;[I"GYou can also create rational object from floating-point numbers or;TI" strings.;T@o;;[ I"?Rational(0.3) #=> (5404319552844595/18014398509481984) ;FI"!Rational('0.3') #=> (3/10) ;FI" Rational('2/3') #=> (2/3) ;FI" ;FI"?0.3.to_r #=> (5404319552844595/18014398509481984) ;FI"!'0.3'.to_r #=> (3/10) ;FI" '2/3'.to_r #=> (2/3) ;FI"!0.3.rationalize #=> (3/10) ;Fo; ;[I"CA rational object is an exact number, which helps you to write;TI")program without any rounding errors.;T@o;;[I"J10.times.inject(0){|t,| t + 0.1} #=> 0.9999999999999999 ;FI"=10.times.inject(0){|t,| t + Rational('0.1')} #=> (1/1) ;Fo; ;[I"GHowever, when an expression has inexact factor (numerical value or;TI"0operation), will produce an inexact result.;T@o;;[ I"#Rational(10) / 3 #=> (10/3) ;FI"/Rational(10) / 3.0 #=> 3.3333333333333335 ;FI" ;FI"$Rational(-8) ** Rational(1, 3) ;FI"D #=> (1.0000000000000002+1.7320508075688772i);F: @fileI"rational.c;To;;[ o; ;[I"OWhen mathn is required Rational is changed to simplify the use of Rational;TI"operations.;T@o; ;[I"Normal behaviour:;T@o;;[I"1Rational.new!(1,3) ** 2 # => Rational(1, 9) ;FI"$(1 / 3) ** 2 # => 0 ;Fo; ;[I"require 'mathn' behaviour:;T@o;;[I"%(1 / 3) ** 2 # => 1/9;F;I"lib/mathn.rb;T;0[ [ [ [[I" class;F[[:public[[I"json_create;FI"&ext/json/lib/json/add/rational.rb;T[:protected[ [:private[ [I" instance;F[[; [[I"*;T@>[I"**;T@>[I"+;T@>[I"-;T@>[I"/;T@>[I"<=>;T@>[I"==;T@>[I"as_json;F@^[I" ceil;T@>[I"denominator;T@>[I" fdiv;T@>[I" floor;T@>[I"inspect;T@>[I"numerator;T@>[I"quo;T@>[I"rationalize;T@>[I" round;T@>[I" to_d;FI"*ext/bigdecimal/lib/bigdecimal/util.rb;T[I" to_f;T@>[I" to_i;T@>[I"to_json;F@^[I" to_r;T@>[I" to_s;T@>[I" truncate;T@>[;[ [;[