3403件ヒット
[3401-3403件を表示]
(0.043秒)
ライブラリ
- ビルトイン (2181)
- benchmark (144)
- bigdecimal (84)
-
bigdecimal
/ newton (12) -
bigdecimal
/ util (24) - cmath (240)
- csv (36)
- fiddle (60)
- json (48)
- mathn (4)
- matrix (240)
- objspace (12)
- optparse (144)
- securerandom (12)
- set (9)
- stringio (12)
-
webrick
/ httpserver (12) - win32ole (48)
クラス
-
Benchmark
:: Tms (132) - BigDecimal (36)
- Bignum (33)
- CSV (24)
- Complex (126)
- Enumerator (31)
-
Enumerator
:: Chain (7) -
Enumerator
:: Lazy (82) -
Fiddle
:: Function (24) - Fixnum (30)
- Float (694)
- Integer (96)
- Matrix (144)
-
Matrix
:: EigenvalueDecomposition (12) - NilClass (12)
- Numeric (196)
- Object (12)
- OptionParser (144)
-
Process
:: Tms (48) - Random (72)
- Range (62)
- Rational (96)
- Set (12)
- String (72)
- StringIO (12)
- Time (89)
- Vector (84)
-
WEBrick
:: HTTPServer (12) -
WIN32OLE
_ TYPELIB (24) -
WIN32OLE
_ VARIANT (24)
モジュール
- Benchmark (12)
- BigMath (24)
- CMath (240)
- Enumerable (12)
- Fiddle (36)
-
GC
:: Profiler (12) - JSON (36)
-
JSON
:: Generator :: GeneratorMethods :: Float (12) - Kernel (84)
- Math (352)
- Newton (12)
- ObjectSpace (12)
- Process (12)
- SecureRandom (12)
キーワード
- % (30)
- * (42)
- ** (41)
- + (42)
- - (66)
- -@ (24)
-
/ (65) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - < (12)
- <= (12)
- <=> (12)
- == (12)
- >= (12)
-
ALIGN
_ FLOAT (12) - BigDecimal (24)
- Converters (12)
- DIG (12)
- E (12)
- EPSILON (12)
- Float (12)
- INFINITY (12)
- Infinity (12)
-
MANT
_ DIG (12) - MAX (12)
-
MAX
_ 10 _ EXP (12) -
MAX
_ EXP (12) - MIN (12)
-
MIN
_ 10 _ EXP (12) -
MIN
_ EXP (12) - Marshal フォーマット (12)
- MinusInfinity (12)
- NAN (12)
-
NEWS for Ruby 2
. 4 . 0 (9) - NaN (12)
- Numeric (12)
- PI (12)
- RADIX (12)
- ROUNDS (7)
-
SIZEOF
_ FLOAT (12) -
TYPE
_ FLOAT (12) - []= (12)
- abs (24)
- acos (18)
- acos! (6)
- acosh (18)
- acosh! (6)
- angle (24)
-
angle
_ with (12) - arg (24)
- asin (18)
- asin! (6)
- asinh (18)
- asinh! (6)
- at (53)
- atan (18)
- atan! (6)
- atan2 (18)
- atan2! (6)
- atanh (18)
- atanh! (6)
- bigdecimal (12)
- bsearch (24)
- call (12)
- cbrt (18)
- cbrt! (6)
- ceil (16)
- classify (12)
-
clock
_ gettime (12) - coerce (12)
- cofactor (12)
-
cofactor
_ expansion (12) - converters (12)
- cos (18)
- cos! (6)
- cosh (18)
- cosh! (6)
- cstime (24)
- cutime (24)
- denominator (24)
- det (12)
-
det
_ e (12) - determinant (12)
-
determinant
_ e (12) - div (18)
- divmod (12)
- dot (12)
-
double
_ fig (12) - each (24)
- eigenvalues (12)
-
elements
_ to _ f (24) -
enum
_ for (24) - eql? (12)
- erf (12)
- erfc (12)
- exp (30)
- exp! (6)
- fdiv (54)
- finite? (30)
- floor (17)
- format (12)
- frexp (12)
- gamma (12)
- grep (12)
-
grep
_ v (10) - hash (12)
- hex (12)
- hypot (12)
- infinite? (30)
-
inner
_ product (12) - inspect (24)
-
laplace
_ expansion (12) - lazy (24)
- ldexp (12)
- lgamma (12)
- log (48)
- log! (12)
- log10 (18)
- log10! (6)
- log2 (18)
- log2! (6)
- magnitude (36)
- memberwise (12)
- modulo (18)
- nan? (12)
- negative? (10)
- new (67)
-
next
_ float (11) - norm (24)
- numerator (24)
- oct (12)
- on (144)
- overlap? (2)
-
parse
_ csv (12) - phase (24)
- positive? (10)
- pow (22)
-
prev
_ float (11) - putc (12)
- quo (24)
- r (12)
- rand (96)
-
random
_ number (12) - rank (12)
- rationalize (24)
-
reachable
_ objects _ from (12) - real (12)
- realtime (12)
- remainder (3)
- round (37)
- rsqrt (4)
-
ruby 1
. 6 feature (12) - sin (18)
- sin! (6)
-
singleton
_ class (12) - sinh (18)
- sinh! (6)
- size (31)
- split (12)
- sprintf (12)
- sprintf フォーマット (12)
- sqrt (18)
- sqrt! (6)
- step (93)
- stime (24)
- tan (18)
- tan! (6)
- tanh (18)
- tanh! (6)
-
to
_ d (24) -
to
_ enum (24) -
to
_ f (102) -
to
_ i (24) -
to
_ json (12) -
to
_ r (12) -
to
_ s (24) - total (12)
-
total
_ time (12) - tr (12)
- trace (12)
- truncate (16)
- utime (24)
- version (12)
- zero? (12)
- 正規表現 (12)
検索結果
先頭1件
-
Marshal フォーマット (18.0)
-
Marshal フォーマット フォーマットバージョン 4.8 を元に記述しています。
...れ、'0', 'T', 'F' になります。
//emlist[][ruby]{
p Marshal.dump(nil).unpack1("x2 a*") # => "0"
p Marshal.dump(true).unpack1("x2 a*") # => "T"
p Marshal.dump(false).unpack1("x2 a*") # => "F"
//}
Ruby 2.1 以前では、インスタンス変数を設定しても dump されません。
Ru......めです。
//emlist[例][ruby]{
p Marshal.dump(-1).unpack1("x2 a*") # => "i\xFA"
p Marshal.dump(0).unpack1("x2 a*") # => "i\x00"
p Marshal.dump(1).unpack1("x2 a*") # => "i\x06"
p Marshal.dump(2).unpack1("x2 a*") # => "i\a" ("i\x07")
//}
形式 1 の範囲を超える数値 N に対しては......:bar
@one = 1
end
end
p Marshal.dump(Foo.new).unpack("x2 a a c a3 c aca4 aca3 aca4 ac")
# => ["o", ":", 8, "Foo", 7,
# ":", 9, "@foo", ":", 8, "bar",
# ":", 9, "@one", "i", 6]
//}
=== Float
'f' で始まるデータ構造になります。
//emlist{
| 'f' | 数値列の長さ(Fixnu...