I-Calculator yentengo yeyunithi
Ulinganise kuze kube yiyizingu-3 zesiphakeli ukuze ubone ukuthi yisiphi isici esingcono ngasinye.
Iziphetho zivuselelwa uma ubhala.
Malunga nale khadi
A unit price calculator divides each item’s price by its size so you can compare different pack sizes fairly and spot the genuinely cheaper deal — the bigger pack is not always the better value. Enter the price and quantity of two products, or add a third under advanced options, in grams, millilitres, sheets, ounces or whatever unit you like (just keep the unit the same across items). It shows the price per unit for each and highlights the best value.
Worked example: a $3.50 pack of 500 g works out to 3.50 ÷ 500 = $0.0070 per gram, while a $5.00 pack of 750 g is 5.00 ÷ 750 = $0.0067 per gram — so the larger pack is about 5% cheaper per gram and is marked as the best value. A comparison table shows each item’s unit price and how much more the others cost.
Shoppers use it to cut through confusing supermarket pricing, compare a multi-buy against a single, and decide whether a bulk size is really worth it.
Imibuzo ebuzwa kaningi
Ngiyilinganise kanjani izindleko ngezinhlobo ezahlukene?
Yabelana intengo ngayinye ngobukhulu bayo ukuthola intengo ngayinye (ngegramu, ngekhasi, ngemililitre), bese uqhathanisa lezi zibalo. I-£3.50 iphakethe le-500 g yi-£0.0070/g kanti i-£5.00 iphakethe le-750 g yi-£0.0067/g, ngakho iphakethe elikhulu lincane kakhulu ngegramu.
Ingabe ngingakwazi ukuqhathanisa imikhiqizo engu-3 ngasikhathi sinye?
Yebo — vula izinketho eziphezulu bese ugcwalisa Ingxenye C. Noma iyiphi ingxenye eshiya ngentengo ye-zero ilahlekile, ngakho ithuluzi liqhathaniswa kuphela ama-2 noma ama-3 okungenayo futhi liphawula okuphansi kakhulu ngeyunithi ngayinye.
Ingabe iphakethe elikhulu lihlala libiza kakhulu ngeyunithi ngayinye?
Akekho njalo. Ubukhulu Bulk ngokuvamile izindleko ngaphantsi ngayinye iyunithi, kodwa ukuthuthukiswa, multi-buys kanye premium amaphakheji amakhulu angashintsha ukuthi. Ukuqhathaniswa iyunithi ngempela izindleko kuyindlela ethembekile kuphela ukutshela.
Ingabe izinto ezimbili ezidinga ukusebenzisa iyunithi eyodwa?
Yebo — faka ama-size amabili ngesilinganiso esifanayo (i-grams, noma ama-sheets, noma ama-millilitres). I-calculator ihlukanisa intengo ngobukhulu ngokuqondile, ngakho-ke ukuxuba ama-grams ngayinye ne-ounces ngayinye kuzonikeza ulinganiso olungenangqondo. Gcwalisa kuyunithi ejwayelekile kuqala uma amaphakethe abhalwe ngokuhlukile.
Ngiyithola kanjani intengo nge-100 g noma ngelitha?
Ngeza ubukhulu kuyunithi eyinhloko bese ufunda intengo ngayinye yeyunithi, bese uphinda: intengo ngayinye yegramu iphinda i-100 yintengo ngayinye ye-100 g, futhi intengo ngayinye yemililitre iphinda i-1000 yintengo ngayinye yelitha. Amathegi eshelfu avame ukubhekwa ngendlela efanayo ukuze ukwazi ukuwaqhathanisa.
Ingabe intengo ephansi kakhulu yeyunithi ihlala ithenga kahle?
Kuyinto izindleko ezingcono kakhulu ngayinye, kodwa hhayi njalo smartest ukuthenga - iphakethe enkulu ebiza kakhulu ayikho isivumelwano uma ukudla spoils ngaphambi kokuba usebenzise, noma uma ungagcina. Ubunzima izindleko ngayinye ephikisana ukuthi yini ongeke usetha.
API — sebenzisa le calculator kusuka kukhodi
Nquma le calculator njenge JSON evulekile yendawo yokuqeda - akukho isithonjana esidingekayo. Thumela amaxabiso endawo ngezansi njengezilungiselelo zombuzo noma i-JSON. Noma yini ongayishiya isebenzisa iphutha elifanayo elifakwe ngaphambili lekhasi; ipharamitha engaziwa yi-400, ayikho i-zero emnyama. Funda i-API egcwele →
Ingxenye yendawo
GET https://calculator.free/api/v1/unit-price/
curl
curl "https://calculator.free/api/v1/unit-price/?price_a=3.5&qty_a=500&price_b=5.0&qty_b=750"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/unit-price/?" + new URLSearchParams({
"price_a": "3.5",
"qty_a": "500",
"price_b": "5.0",
"qty_b": "750"
}));
const data = await r.json();
console.log(data.results);
Izibalo ziyisilinganiso esisetshenziswa ukuqondisa kuphela, hhayi ukucebisa ngezimali, ukwelashwa noma ukukhokha.