I-Calculator yeNtlawulo yeNkunkuma
Umsebenzi wokusebenza kwexabiso legesi yenqwelo-moya esuka kumgama, ukusetyenziswa kakuhle kwegesi kunye nexabiso legesi.
Iinketho ze projekti
Malunga nale Calculator
you’re traveling in a car, you can use the fuel cost calculator to calculate the cost of fuel for your trip. The fuel cost calculator calculates the cost of fuel for a trip from three numbers: the distance, your vehicle’s fuel efficiency and the price of fuel. In mpg mode it divides the distance by your miles-per-gallon to get gallons used, then multiplies by your litres-per-100km figure to get litres, then multiplies by the price per gallon. In metric mode it calculates the cost.For example,For example
Imibuzo ebuza rhoqo
Ixabiso lefuthe lokuqhuba licalwa njani?
Kwindlela ye mpg: umbane osetyenziswayo = umgama / mpg, ngoko ke ixabiso = umbane x ixabiso ngegalilo. Kwindlela yemetriki: iilitara = umgama / 100 x (l/100km), ngoko ke ixabiso = iilitara x ixabiso ngelilitra.
Ingaba indlela yokuhamba itshintsha impumelelo?
Ewe. Ukusebenza kakuhle okunyanzelekileyo kuxhomekeke kwisantya, uthungelwano, umthwalo kunye nendawo, ngoko ke sebenzisa le nto njengengxelo esekelwe kwixabiso lokusebenza kakuhle olungenayo.
Ndiyitshintshe njani i-mpg nelitha nganye kwi-100 km?
Sebenzisa iyunithi ezicwangcisiweyo phantsi kweenketho eziphambili. Iimile & mpg iphatha umgama ngemile kunye nokusebenza kakuhle njengemile nge gal; km & l/ 100km iphatha umgama ngemile kunye nokusebenza kakuhle njenge litre nge litre, ngexabiso elifundwayo nge litre.
Ndiza kuhlula njani iindleko zepetroli phakathi kwabakhweli?
Misela inani labantu phantsi kokhetho oluphambili. I-calculator ihlula ixabiso lepetroli yokuhamba ngokufanayo, ngoko umhambi ngamnye ubona inxaxheba yakhe - esetyenziswa kwii-carpools kunye neentlanganiso zokuhamba ngeenyawo.
Ingaba ndiya kusebenzisa ifuthe elingakanani?
I-calculator ibonisa igesi esetyenziswayo kunye nexabiso. Kwindlela ye-mpg umgama ÷ mpg (iigaloni); kwindlela ye-metric umgama ÷ 100 × l/100km (iilitara). Uhambo lweekhilomitha ezi-300 nge-30 mpg lusebenzisa iigalioni ezi-10.
Ndiyiqikelela njani ihambo lokuya kunye nokuhamba?
Ngenisa umgama opheleleyo weenyawo zombini, okanye uphinde
API — sebenzisa le calculator ukusuka kwikhowudi
Nceda le kalkulator njengendawo esemva ye-JSON ekhululekileyo - akukho qhosha lifunekayo. Thumela amaxabiso endawo engezantsi njengeparameter yombuzo okanye i-JSON. Funda i-API epheleleyo →
Incopho yesiphelo
GET https://calculator.free/api/v1/fuel-cost/
curl
curl "https://calculator.free/api/v1/fuel-cost/?distance=300&efficiency=30&price=3.5"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/fuel-cost/?" + new URLSearchParams({
"distance": "300",
"efficiency": "30",
"price": "3.5"
}));
const data = await r.json();
console.log(data.results);
IiNtlanganiso zeNtlanganiso yeNtlanganiso