កម្មវិធីបម្លែងការផ្ទុកទិន្នន័យ
បម្លែងការផ្ទុកឌីជីថលរវាងប៊ីត បៃ KB, MB, GB, TB និងឯកតាគោលពីរ ។
លទ្ធផលធ្វើឲ្យទាន់សម័យតាមដែលអ្នកវាយ ។
អំពីម៉ាស៊ីនគិតលេខនេះ
A data storage converter changes a digital size between bits and bytes and their multiples, converting through the byte as a common base. It covers both the decimal SI units — kilobyte, megabyte, gigabyte, terabyte and petabyte, each a power of 1,000 — and the binary IEC units — kibibyte, mebibyte, gibibyte and so on, each a power of 1,024.
Keeping the two families apart is the whole point: 1 KB is 1,000 bytes but 1 KiB is 1,024 bytes, and the gap widens at each step, reaching about 10% by the terabyte. There are always 8 bits in a byte, whichever family you use.
Worked example: to convert 500 megabytes to gigabytes in SI units, divide by 1,000, giving 0.5 GB. To see why a "1 TB" drive shows as about 931 GiB, divide 1,000,000,000,000 bytes by 1,073,741,824, the number of bytes in a gibibyte. A results table lists the size in every unit at once, handy for sizing downloads, disks and bandwidth.
សំណួរដែលសួរញឹកញាប់
តើគីឡូបៃមានចំនួន ១០០០ ឬ ១០២៤ បៃឬទេ ?
It depends on the unit. The SI kilobyte (KB) is 1,000 bytes, while the binary kibibyte (KiB) is 1,024 bytes. Storage is usually sold in decimal units and reported by some software in binary ones, which is why a "1 TB" drive shows as ~931 GiB.
តើមានប៊ីតប៉ុន្មានក្នុងបៃមួយ ?
មាន 8 ប៊ីត ក្នុង មួយ បៃ ។ ល្បឿន បណ្តាញ ជា ធម្មតា ត្រូវ បាន លើក ឡើង ក្នុង ប៊ីត ក្នុង មួយ វិនាទី ដូច្នេះ 100 Mbps តំណ ផ្ទេរ នៅ ច្រើន ជាង 12.5 MB ក្នុង មួយ វិនាទី ។
តើមានមេកាបៃប៉ុន្មានក្នុងជីកាបៃ ?
In decimal SI units, 1 GB = 1,000 MB. In binary units, 1 GiB = 1,024 MiB.
ហេតុអ្វីបានជាដ្រាយរឹងរបស់ខ្ញុំបង្ហាញទំហំតិចជាងការប្រកាស?
Manufacturers sell drives in decimal units (a "1 TB" drive is 1,000,000,000,000 bytes), but many operating systems report size in binary units. Dividing by 1,073,741,824 turns that 1 TB into about 931 GiB, so no space is actually missing.
តើខ្ញុំបម្លែងមេកាបៃទៅមេកាបៃដោយរបៀបណា ?
ចែកមេកាបៃដោយ 8, ដោយសារតែបៃគឺ 8 ប៊ីត. ការតភ្ជាប់ 100 Mbps ដូច្នេះផ្ទេរនៅច្រើនបំផុតអំពី 12.5 មេកាបៃក្នុងមួយវិនាទី និងកម្មវិធីបម្លែងការផ្ទុកទិន្នន័យនេះព្យាបាលប៊ីត និងបៃជាមួយនឹងសមាមាត្រ 8- ទៅ- 1 នោះ ។
តើអ្វីជាភាពខុសគ្នារវាងមេកាបៃ និងមេប៊ីបៃ ?
A megabyte (MB) is 1,000,000 bytes, while a mebibyte (MiB) is 1,048,576 bytes (1,024²). The binary mebibyte is about 4.9% larger.
API — ប្រើម៉ាស៊ីនគិតលេខនេះពីកូដ
ទូរស័ព្ទទៅម៉ាស៊ីនគិតលេខនេះជាចំណុចបញ្ចប់ JSON ឥតគិតថ្លៃ - គ្មានគ្រាប់ចុចដែលត្រូវការ ។ ផ្ញើតម្លៃវាលខាងក្រោមជាប៉ារ៉ាម៉ែត្រសំណួរ ឬ JSON ។ អ្វីដែលអ្នករំលងប្រើលំនាំដើមដូចគ្នាដែលទំព័រនេះត្រូវបានបំពេញជាមុនជាមួយប៉ារ៉ាម៉ែត្រមិនស្គាល់គឺ ៤០០ មិនមែនសូន្យស្ងាត់ទេ ។ អានឯកសារ API ពេញលេញ →
ចំណុចបញ្ចប់
GET https://calculator.free/api/v1/data-storage/
curl
curl "https://calculator.free/api/v1/data-storage/?amount=1&from=mb&to=gb"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/data-storage/?" + new URLSearchParams({
"amount": "1",
"from": "mb",
"to": "gb"
}));
const data = await r.json();
console.log(data.results);
លទ្ធផលគឺការប៉ាន់ប្រមាណសម្រាប់តែការណែនាំទូទៅប៉ុណ្ណោះ, មិនហិរញ្ញវត្ថុ, វេជ្ជសាស្ត្រឬដំបូន្មានពន្ធ.