abstract struct Number
- Number
- Value
- Object
Overview
The top-level number type.
Included Modules
- Comparable(Number)
- Steppable
Defined in:
length.crweight.cr
Instance Method Summary
-
#centimeter
Instantiate a
Measure::Lengthofselfcentimeter -
#centimeters
Instantiate a
Measure::Lengthofselfcentimeters -
#cm
Instantiate a
Measure::Lengthofselfcm -
#feet
Instantiate a
Measure::Lengthofselffeet -
#foot
Instantiate a
Measure::Lengthofselffoot -
#ft
Instantiate a
Measure::Lengthofselfft - #g
- #gram
- #grams
-
#in
Instantiate a
Measure::Lengthofselfin -
#inch
Instantiate a
Measure::Lengthofselfinch -
#inches
Instantiate a
Measure::Lengthofselfinches - #kg
- #kilogram
- #kilograms
-
#kilometer
Instantiate a
Measure::Lengthofselfkilometer -
#kilometers
Instantiate a
Measure::Lengthofselfkilometers -
#km
Instantiate a
Measure::Lengthofselfkm - #lb
- #lbs
-
#meter
Instantiate a
Measure::Lengthofselfmeter -
#meters
Instantiate a
Measure::Lengthofselfmeters - #mg
-
#mi
Instantiate a
Measure::Lengthofselfmi -
#micrometer
Instantiate a
Measure::Lengthofselfmicrometer -
#micrometers
Instantiate a
Measure::Lengthofselfmicrometers -
#micron
Instantiate a
Measure::Lengthofselfmicron -
#microns
Instantiate a
Measure::Lengthofselfmicrons -
#mile
Instantiate a
Measure::Lengthofselfmile -
#miles
Instantiate a
Measure::Lengthofselfmiles - #milligram
- #milligrams
-
#millimeter
Instantiate a
Measure::Lengthofselfmillimeter -
#millimeters
Instantiate a
Measure::Lengthofselfmillimeters -
#mm
Instantiate a
Measure::Lengthofselfmm -
#nanometer
Instantiate a
Measure::Lengthofselfnanometer -
#nanometers
Instantiate a
Measure::Lengthofselfnanometers -
#nm
Instantiate a
Measure::Lengthofselfnm - #ounce
- #ounces
- #oz
- #pound
- #pounds
- #t
- #ton
- #tons
-
#yard
Instantiate a
Measure::Lengthofselfyard -
#yards
Instantiate a
Measure::Lengthofselfyards -
#yd
Instantiate a
Measure::Lengthofselfyd -
#yds
Instantiate a
Measure::Lengthofselfyds
Instance Method Detail
Instantiate a Measure::Length of self centimeter
1.centimeter
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Centimeter)
Instantiate a Measure::Length of self centimeters
1.centimeters
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Centimeters)
Instantiate a Measure::Length of self cm
1.cm
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::CM)
Instantiate a Measure::Length of self feet
1.feet
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Feet)
Instantiate a Measure::Length of self foot
1.foot
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Foot)
Instantiate a Measure::Length of self ft
1.ft
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Ft)
Instantiate a Measure::Length of self in
1.in
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::In)
Instantiate a Measure::Length of self inch
1.inch
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Inch)
Instantiate a Measure::Length of self inches
1.inches
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Inches)
Instantiate a Measure::Length of self kilometer
1.kilometer
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Kilometer)
Instantiate a Measure::Length of self kilometers
1.kilometers
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Kilometers)
Instantiate a Measure::Length of self km
1.km
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::KM)
Instantiate a Measure::Length of self meter
1.meter
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Meter)
Instantiate a Measure::Length of self meters
1.meters
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Meters)
Instantiate a Measure::Length of self mi
1.mi
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Mi)
Instantiate a Measure::Length of self micrometer
1.micrometer
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Micrometer)
Instantiate a Measure::Length of self micrometers
1.micrometers
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Micrometers)
Instantiate a Measure::Length of self micron
1.micron
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Micron)
Instantiate a Measure::Length of self microns
1.microns
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Microns)
Instantiate a Measure::Length of self mile
1.mile
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Mile)
Instantiate a Measure::Length of self miles
1.miles
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Miles)
Instantiate a Measure::Length of self millimeter
1.millimeter
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Millimeter)
Instantiate a Measure::Length of self millimeters
1.millimeters
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Millimeters)
Instantiate a Measure::Length of self mm
1.mm
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::MM)
Instantiate a Measure::Length of self nanometer
1.nanometer
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Nanometer)
Instantiate a Measure::Length of self nanometers
1.nanometers
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Nanometers)
Instantiate a Measure::Length of self nm
1.nm
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::NM)
Instantiate a Measure::Length of self yard
1.yard
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Yard)
Instantiate a Measure::Length of self yards
1.yards
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Yards)
Instantiate a Measure::Length of self yd
1.yd
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Yd)
Instantiate a Measure::Length of self yds
1.yds
# => Measure::Length(@magnitude=1.0, @unit=Measure::Length::Unit::Yds)