ម៉ាស៊ីនគិតលេខបញ្ចុះតម្លៃ
រកមើលតម្លៃលក់និងចំនួនទឹកប្រាក់ដែលអ្នកបានរក្សាទុកពីការបញ្ចុះតម្លៃភាគរយណាមួយ.
លទ្ធផលធ្វើឲ្យទាន់សម័យតាមដែលអ្នកវាយ ។
អំពីម៉ាស៊ីនគិតលេខនេះ
A discount calculator applies a percentage off an original price to give you the final sale price and the amount you save. The saving is the price multiplied by the discount percent and divided by 100; the sale price is what is left after subtracting it. Add a second discount or a tax rate under advanced options to see the true checkout price.
For example, 25% off an 80 item saves 80 × 25 ÷ 100 = 20, so the sale price is 60. If a second 10% coupon applies, it comes off the already-reduced 60 — not the original — giving 60 × 0.90 = 54. That is why stacked discounts are always worth less than simply adding the two percentages together.
Use it while shopping to check whether a "40% off" tag is really the best deal, to compare two offers, or to work out the final price when a store code stacks on a sale. Turn on the tax field to see the actual amount you will hand over at the register.
សំណួរដែលសួរញឹកញាប់
តើខ្ញុំត្រូវគណនាការបញ្ចុះតម្លៃភាគរយយ៉ាងដូចម្តេច?
គុណតម្លៃដោយភាគរយបញ្ចុះតម្លៃនិងចែកដោយ 100 ដើម្បីទទួលបានការរក្សាទុក, បន្ទាប់មកដកវា. 25% បញ្ចុះតម្លៃ 80 គឺជាការរក្សាទុកនៃ 20, ដូច្នេះតម្លៃចុងក្រោយគឺ 60.
តើការបញ្ចុះតម្លៃដែលបានដាក់ជួរធ្វើការយ៉ាងដូចម្តេច?
25% ចុះបន្ទាប់មក 10% ចុះ 80 ផ្តល់ឱ្យ 80 → 60 → 54, មិន 52.
តើខ្ញុំគណនាតម្លៃចុងក្រោយបន្ទាប់ពីការបញ្ចុះតម្លៃយ៉ាងដូចម្តេច?
គុណតម្លៃដើមដោយ (1 - បញ្ចុះតម្លៃ÷ 100). សម្រាប់ 25% បញ្ឈប់ 80: 80 × 0.75 = 60. ចំនួនទឹកប្រាក់ដែលអ្នករក្សាទុកគឺដើមអប្បបរមាដែលរូបតំណាង - នៅទីនេះ 20.
តើ 50% ចុះ 20% ចុះ ដូចគ្នា ទៅនឹង 70% ចុះ ដែរឬទេ?
ទេ. 20% នេះមកពីតម្លៃដែលបានកាត់បន្ថយដោយ 50%, ដូច្នេះ 100 → 50 → 40, 60% បញ្ចុះតម្លៃមានប្រសិទ្ធភាព - មិន 70%. ភាគរយ stapled មិនដែលគ្រាន់តែបន្ថែមគ្នា.
តើខ្ញុំអាចរកតម្លៃដើមពីតម្លៃលក់បានយ៉ាងដូចម្តេច?
ចែកតម្លៃលក់ដោយ (1 - បញ្ចុះតម្លៃ÷ 100) ។ ប្រសិនបើធាតុមួយគឺ 60 បន្ទាប់ពី 25% ចេញ, ដើមគឺ 60 ÷ 0.75 = 80 ។ នេះត្រឡប់បញ្ចុះតម្លៃតែមួយ។
តើខ្ញុំអាចបន្ថែមពន្ធលើការលក់ទៅតម្លៃបញ្ចុះតម្លៃបានយ៉ាងដូចម្តេច?
ធ្វើការចេញតម្លៃលក់ដំបូង, បន្ទាប់មកពង្រីកដោយ (1 + ពន្ធ÷ 100). វាលពន្ធក្រោមជម្រើសកម្រិតខ្ពស់ធ្វើនេះដោយស្វ័យប្រវត្តិ, ដូច្នេះរូបថតចុងក្រោយគឺអ្វីដែលអ្នកពិតជាបង់នៅការពិនិត្យ.
API — ប្រើម៉ាស៊ីនគិតលេខនេះពីកូដ
ទូរស័ព្ទទៅម៉ាស៊ីនគិតលេខនេះជាចំណុចបញ្ចប់ JSON ឥតគិតថ្លៃ - គ្មានគ្រាប់ចុចដែលត្រូវការ ។ ផ្ញើតម្លៃវាលខាងក្រោមជាប៉ារ៉ាម៉ែត្រសំណួរ ឬ JSON ។ អ្វីដែលអ្នករំលងប្រើលំនាំដើមដូចគ្នាដែលទំព័រនេះត្រូវបានបំពេញជាមុនជាមួយប៉ារ៉ាម៉ែត្រមិនស្គាល់គឺ ៤០០ មិនមែនសូន្យស្ងាត់ទេ ។ អានឯកសារ API ពេញលេញ →
ចំណុចបញ្ចប់
GET https://calculator.free/api/v1/discount/
curl
curl "https://calculator.free/api/v1/discount/?price=80&percent=25"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/discount/?" + new URLSearchParams({
"price": "80",
"percent": "25"
}));
const data = await r.json();
console.log(data.results);
លទ្ធផលគឺការប៉ាន់ប្រមាណសម្រាប់តែការណែនាំទូទៅប៉ុណ្ណោះ, មិនហិរញ្ញវត្ថុ, វេជ្ជសាស្ត្រឬដំបូន្មានពន្ធ.