1# Test data for unit conversions 2# Copyright © 1991-2020 Unicode, Inc. 3# For terms of use, see http://www.unicode.org/copyright.html 4# Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries. 5# CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/) 6# 7# Format: 8# Quantity ; x ; y ; conversion to y (rational) ; test: 1000 x ⟹ y 9# 10# Use: convert 1000 x units to the y unit; the result should match the final column, 11# at the given precision. For example, when the last column is 159.1549, 12# round to 4 decimal digits before comparing. 13# Note that certain conversions are approximate, such as degrees to radians 14# 15# Generation: Set GENERATE_TESTS in TestUnits.java, and look at TestParseUnit results. 16 17acceleration ; meter-per-square-second ; meter-per-square-second ; 1 * x ; 1,000.00 18acceleration ; g-force ; meter-per-square-second ; 9.80665 * x ; 9806.65 19angle ; arc-second ; revolution ; 0.0000625/81 * x ; 7.716049E-4 20angle ; arc-minute ; revolution ; 0.00125/27 * x ; 0.0462963 21angle ; degree ; revolution ; 0.025/9 * x ; 2.777778 22angle ; radian ; revolution ; 65,501,488/411,557,987 * x ; 159.1549 23angle ; revolution ; revolution ; 1 * x ; 1,000.00 24area ; square-centimeter ; square-meter ; 0.0001 * x ; 0.1 25area ; square-inch ; square-meter ; 0.00064516 * x ; 0.64516 26area ; square-foot ; square-meter ; 0.09290304 * x ; 92.90304 27area ; square-yard ; square-meter ; 0.83612736 * x ; 836.1274 28area ; square-meter ; square-meter ; 1 * x ; 1,000.00 29area ; dunam ; square-meter ; 1,000 * x ; 1000000.0 30area ; acre ; square-meter ; 4,046.8564224 * x ; 4046856.0 31area ; hectare ; square-meter ; 10,000 * x ; 1.0E7 32area ; square-kilometer ; square-meter ; 1,000,000 * x ; 1.0E9 33area ; square-mile ; square-meter ; 2,589,988.110336 * x ; 2.589988E9 34concentration ; millimole-per-liter ; item-per-cubic-meter ; 602,214,076,000,000,000,000,000 * x ; 6.022141E26 35consumption ; liter-per-100-kilometer ; cubic-meter-per-meter ; 0.00000001 * x ; 1.0E-5 36consumption ; liter-per-kilometer ; cubic-meter-per-meter ; 0.000001 * x ; 0.001 37consumption-inverse ; mile-per-gallon-imperial ; meter-per-cubic-meter ; 160,934,400,000/454,609 * x ; 3.540062E8 38consumption-inverse ; mile-per-gallon ; meter-per-cubic-meter ; 48,000,000,000/112,903 * x ; 4.251437E8 39digital ; bit ; bit ; 1 * x ; 1,000.00 40digital ; byte ; bit ; 8 * x ; 8000.0 41digital ; kilobit ; bit ; 1,000 * x ; 1000000.0 42digital ; kilobyte ; bit ; 8,000 * x ; 8000000.0 43digital ; megabit ; bit ; 1,000,000 * x ; 1.0E9 44digital ; megabyte ; bit ; 8,000,000 * x ; 8.0E9 45digital ; gigabit ; bit ; 1,000,000,000 * x ; 1.0E12 46digital ; gigabyte ; bit ; 8,000,000,000 * x ; 8.0E12 47digital ; terabit ; bit ; 1,000,000,000,000 * x ; 1.0E15 48digital ; terabyte ; bit ; 8,000,000,000,000 * x ; 8.0E15 49digital ; petabyte ; bit ; 8,000,000,000,000,000 * x ; 8.0E18 50duration ; nanosecond ; second ; 0.000000001 * x ; 1.0E-6 51duration ; microsecond ; second ; 0.000001 * x ; 0.001 52duration ; millisecond ; second ; 0.001 * x ; 1.0 53duration ; second ; second ; 1 * x ; 1,000.00 54duration ; minute ; second ; 60 * x ; 60000.0 55duration ; hour ; second ; 3,600 * x ; 3600000.0 56duration ; day ; second ; 86,400 * x ; 8.64E7 57duration ; day-person ; second ; 86,400 * x ; 8.64E7 58duration ; week ; second ; 604,800 * x ; 6.048E8 59duration ; week-person ; second ; 604,800 * x ; 6.048E8 60electric-current ; milliampere ; ampere ; 0.001 * x ; 1.0 61electric-current ; ampere ; ampere ; 1 * x ; 1,000.00 62electric-resistance ; ohm ; kilogram-square-meter-per-cubic-second-square-ampere ; 1 * x ; 1000.0 63energy ; electronvolt ; kilogram-square-meter-per-square-second ; 0.0000000000000000001602177 * x ; 1.602177E-16 64energy ; dalton ; kilogram-square-meter-per-square-second ; 0.00000000014924180856 * x ; 1.492418E-7 65energy ; joule ; kilogram-square-meter-per-square-second ; 1 * x ; 1000.0 66energy ; newton-meter ; kilogram-square-meter-per-square-second ; 1 * x ; 1000.0 67energy ; pound-force-foot ; kilogram-square-meter-per-square-second ; 1.3558179483314004 * x ; 1355.818 68energy ; calorie ; kilogram-square-meter-per-square-second ; 4.184 * x ; 4184.0 69energy ; kilojoule ; kilogram-square-meter-per-square-second ; 1,000 * x ; 1000000.0 70energy ; british-thermal-unit ; kilogram-square-meter-per-square-second ; 9,489.1523804/9 * x ; 1054350.0 71energy ; foodcalorie ; kilogram-square-meter-per-square-second ; 4,184 * x ; 4184000.0 72energy ; kilocalorie ; kilogram-square-meter-per-square-second ; 4,184 * x ; 4184000.0 73energy ; kilowatt-hour ; kilogram-square-meter-second-per-cubic-second ; 3,600,000 * x ; 3.6E9 74energy ; therm-us ; kilogram-square-meter-per-square-second ; 105,480,400 * x ; 1.054804E11 75force ; newton ; kilogram-meter-per-square-second ; 1 * x ; 1000.0 76force ; pound-force ; kilogram-meter-per-square-second ; 4.4482216152605 * x ; 4448.222 77frequency ; hertz ; revolution-per-second ; 1 * x ; 1000.0 78frequency ; kilohertz ; revolution-per-second ; 1,000 * x ; 1000000.0 79frequency ; megahertz ; revolution-per-second ; 1,000,000 * x ; 1.0E9 80frequency ; gigahertz ; revolution-per-second ; 1,000,000,000 * x ; 1.0E12 81graphics ; dot ; pixel ; 1 * x ; 1000.0 82graphics ; pixel ; pixel ; 1 * x ; 1,000.00 83graphics ; megapixel ; pixel ; 1,000,000 * x ; 1.0E9 84illuminance ; lux ; candela-per-square-meter ; 1 * x ; 1000.0 85length ; picometer ; meter ; 0.000000000001 * x ; 1.0E-9 86length ; nanometer ; meter ; 0.000000001 * x ; 1.0E-6 87length ; micrometer ; meter ; 0.000001 * x ; 0.001 88length ; point ; meter ; 0.003175/9 * x ; 0.3527778 89length ; millimeter ; meter ; 0.001 * x ; 1.0 90length ; centimeter ; meter ; 0.01 * x ; 10.0 91length ; inch ; meter ; 0.0254 * x ; 25.4 92length ; decimeter ; meter ; 0.1 * x ; 100.0 93length ; foot ; meter ; 0.3048 * x ; 304.8 94length ; yard ; meter ; 0.9144 * x ; 914.4 95length ; meter ; meter ; 1 * x ; 1,000.00 96length ; fathom ; meter ; 1.8288 * x ; 1828.8 97length ; furlong ; meter ; 201.168 * x ; 201168.0 98length ; kilometer ; meter ; 1,000 * x ; 1000000.0 99length ; mile ; meter ; 1,609.344 * x ; 1609344.0 100length ; nautical-mile ; meter ; 1,852 * x ; 1852000.0 101length ; mile-scandinavian ; meter ; 10,000 * x ; 1.0E7 102length ; 100-kilometer ; meter ; 100,000 * x ; 1.0E8 103length ; earth-radius ; meter ; 6,378,100 * x ; 6.3781E9 104length ; solar-radius ; meter ; 695,700,000 * x ; 6.957E11 105length ; astronomical-unit ; meter ; 149,597,900,000 * x ; 1.495979E14 106length ; light-year ; meter ; 9,460,730,000,000,000 * x ; 9.46073E18 107length ; parsec ; meter ; 30,856,780,000,000,000 * x ; 3.085678E19 108luminous-flux ; lumen ; candela-square-meter-per-square-meter ; 1 * x ; 1000.0 109luminous-intensity ; candela ; candela ; 1 * x ; 1,000.00 110mass ; microgram ; kilogram ; 0.000000001 * x ; 1.0E-6 111mass ; milligram ; kilogram ; 0.000001 * x ; 0.001 112mass ; grain ; kilogram ; 0.00006479891 * x ; 0.06479891 113mass ; carat ; kilogram ; 0.0002 * x ; 0.2 114mass ; gram ; kilogram ; 0.001 * x ; 1.0 115mass ; ounce ; kilogram ; 0.028349523125 * x ; 28.34952 116mass ; ounce-troy ; kilogram ; 0.03110348 * x ; 31.10348 117mass ; pound ; kilogram ; 0.45359237 * x ; 453.5924 118mass ; kilogram ; kilogram ; 1 * x ; 1,000.00 119mass ; stone ; kilogram ; 6.35029318 * x ; 6350.293 120mass ; ton ; kilogram ; 907.18474 * x ; 907184.7 121mass ; metric-ton ; kilogram ; 1,000 * x ; 1000000.0 122mass ; earth-mass ; kilogram ; 5,972,200,000,000,000,000,000,000 * x ; 5.9722E27 123mass ; solar-mass ; kilogram ; 1,988,470,000,000,000,000,000,000,000,000 * x ; 1.98847E33 124mass-density ; milligram-per-deciliter ; kilogram-per-cubic-meter ; 0.01 * x ; 10.0 125portion ; permillion ; portion ; 0.000001 * x ; 0.001 126portion ; permyriad ; portion ; 0.0001 * x ; 0.1 127portion ; permille ; portion ; 0.001 * x ; 1.0 128portion ; percent ; portion ; 0.01 * x ; 10.0 129portion ; karat ; portion ; 0.125/3 * x ; 41.66667 130portion ; portion ; portion ; 1 * x ; 1,000.00 131power ; milliwatt ; kilogram-square-meter-per-cubic-second ; 0.001 * x ; 1.0 132power ; watt ; kilogram-square-meter-per-cubic-second ; 1 * x ; 1000.0 133power ; horsepower ; kilogram-square-meter-per-cubic-second ; 745.69987158227022 * x ; 745699.9 134power ; kilowatt ; kilogram-square-meter-per-cubic-second ; 1,000 * x ; 1000000.0 135power ; megawatt ; kilogram-square-meter-per-cubic-second ; 1,000,000 * x ; 1.0E9 136power ; gigawatt ; kilogram-square-meter-per-cubic-second ; 1,000,000,000 * x ; 1.0E12 137power ; solar-luminosity ; kilogram-square-meter-per-cubic-second ; 382,800,000,000,000,000,000,000,000 * x ; 3.828E29 138pressure ; pascal ; kilogram-per-meter-square-second ; 1 * x ; 1000.0 139pressure ; hectopascal ; kilogram-per-meter-square-second ; 100 * x ; 100000.0 140pressure ; millibar ; kilogram-per-meter-square-second ; 100 * x ; 100000.0 141pressure ; millimeter-ofhg ; kilogram-meter-per-square-meter-square-second ; 133.322387415 * x ; 133322.4 142pressure ; kilopascal ; kilogram-per-meter-square-second ; 1,000 * x ; 1000000.0 143pressure ; inch-ofhg ; kilogram-meter-per-square-meter-square-second ; 3,386.388640341 * x ; 3386389.0 144pressure ; pound-force-per-square-inch ; kilogram-meter-per-square-meter-square-second ; 111,205,540.3815125/16,129 * x ; 6894757.0 145pressure ; bar ; kilogram-per-meter-square-second ; 100,000 * x ; 1.0E8 146pressure ; atmosphere ; kilogram-per-meter-square-second ; 101,325 * x ; 1.01325E8 147pressure ; megapascal ; kilogram-per-meter-square-second ; 1,000,000 * x ; 1.0E9 148pressure-per-length ; ofhg ; kilogram-per-square-meter-square-second ; 133,322.387415 * x ; 1.333224E8 149resolution ; dot-per-inch ; pixel-per-meter ; 5,000/127 * x ; 39370.08 150resolution ; pixel-per-inch ; pixel-per-meter ; 5,000/127 * x ; 39370.08 151resolution ; dot-per-centimeter ; pixel-per-meter ; 100 * x ; 100000.0 152resolution ; pixel-per-centimeter ; pixel-per-meter ; 100 * x ; 100000.0 153speed ; kilometer-per-hour ; meter-per-second ; 2.5/9 * x ; 277.7778 154speed ; mile-per-hour ; meter-per-second ; 0.44704 * x ; 447.04 155speed ; knot ; meter-per-second ; 4.63/9 * x ; 514.4444 156speed ; meter-per-second ; meter-per-second ; 1 * x ; 1,000.00 157substance-amount ; item ; item ; 1 * x ; 1,000.00 158substance-amount ; mole ; item ; 602,214,076,000,000,000,000,000 * x ; 6.022141E26 159temperature ; fahrenheit ; kelvin ; 5/9 * x - 2,298.35/9 ; 810.9278 160temperature ; kelvin ; kelvin ; 1 * x ; 1,000.00 161temperature ; celsius ; kelvin ; 1 * x - 273.15 ; 1273.15 162typewidth ; em ; em ; 1 * x ; 1,000.00 163voltage ; volt ; kilogram-square-meter-per-cubic-second-ampere ; 1 * x ; 1000.0 164volume ; drop ; cubic-meter ; 0.0000001540287998046875/3 * x ; 5.134293E-5 165volume ; pinch ; cubic-meter ; 0.00000023104319970703125 * x ; 2.310432E-4 166volume ; cubic-centimeter ; cubic-meter ; 0.000001 * x ; 0.001 167volume ; milliliter ; cubic-meter ; 0.000001 * x ; 0.001 168volume ; dessert-spoon ; cubic-meter ; 0.00000184834559765625 * x ; 0.001848346 169volume ; dessert-spoon-imperial ; cubic-meter ; 0.0000022197705078125 * x ; 0.002219771 170volume ; dram ; cubic-meter ; 0.0000036966911953125 * x ; 0.003696691 171volume ; teaspoon ; cubic-meter ; 0.00000492892159375 * x ; 0.004928922 172volume ; centiliter ; cubic-meter ; 0.00001 * x ; 0.01 173volume ; tablespoon ; cubic-meter ; 0.00001478676478125 * x ; 0.01478676 174volume ; cubic-inch ; cubic-meter ; 0.000016387064 * x ; 0.01638706 175volume ; fluid-ounce-imperial ; cubic-meter ; 0.0000284130625 * x ; 0.02841306 176volume ; fluid-ounce ; cubic-meter ; 0.0000295735295625 * x ; 0.02957353 177volume ; jigger ; cubic-meter ; 0.00004436029434375 * x ; 0.04436029 178volume ; deciliter ; cubic-meter ; 0.0001 * x ; 0.1 179volume ; cup ; cubic-meter ; 0.0002365882365 * x ; 0.2365882 180volume ; cup-metric ; cubic-meter ; 0.00025 * x ; 0.25 181volume ; pint ; cubic-meter ; 0.000473176473 * x ; 0.4731765 182volume ; pint-metric ; cubic-meter ; 0.0005 * x ; 0.5 183volume ; quart ; cubic-meter ; 0.000946352946 * x ; 0.9463529 184volume ; liter ; cubic-meter ; 0.001 * x ; 1.0 185volume ; quart-imperial ; cubic-meter ; 0.0011365225 * x ; 1.136522 186volume ; gallon ; cubic-meter ; 0.003785411784 * x ; 3.785412 187volume ; gallon-imperial ; cubic-meter ; 0.00454609 * x ; 4.54609 188volume ; cubic-foot ; cubic-meter ; 0.028316846592 * x ; 28.31685 189volume ; bushel ; cubic-meter ; 0.03523907016688 * x ; 35.23907 190volume ; hectoliter ; cubic-meter ; 0.1 * x ; 100.0 191volume ; barrel ; cubic-meter ; 0.158987294928 * x ; 158.9873 192volume ; cubic-yard ; cubic-meter ; 0.764554857984 * x ; 764.5549 193volume ; cubic-meter ; cubic-meter ; 1 * x ; 1,000.00 194volume ; megaliter ; cubic-meter ; 1,000 * x ; 1000000.0 195volume ; acre-foot ; cubic-meter ; 1,233.48183754752 * x ; 1233482.0 196volume ; cubic-kilometer ; cubic-meter ; 1,000,000,000 * x ; 1.0E12 197volume ; cubic-mile ; cubic-meter ; 4,168,181,825.440579584 * x ; 4.168182E12 198year-duration ; month ; year ; 0.25/3 * x ; 83.33333 199year-duration ; month-person ; year ; 0.25/3 * x ; 83.33333 200year-duration ; year ; year ; 1 * x ; 1,000.00 201year-duration ; year-person ; year ; 1 * x ; 1000.0 202year-duration ; decade ; year ; 10 * x ; 10000.0 203year-duration ; century ; year ; 100 * x ; 100000.0