Comments (5)
100F
, ignoring the lack of a space between the quantity and the unit symbol, means "100 Farads", a unit of electrical capacitance.
from everything-metric.
@getsnoopy could this be added as an option (pretty please), although it not being "scientifically correct".
Similar to #14 usually people on reddit, and some recipe sites, only write out 100F instead of the correct 100°F
from everything-metric.
Well the correct formatting would be 100 °F
(the space is required), but yes, as an extension, it should be as flexible/forgiving as possible in recognizing units. But that's for the maintainer to decide.
from everything-metric.
Yep, I think it would be best as an optional setting for those who are not as strict with their units :)
For now I just wrote my own lazy TamperMonkey script that does the same:
// ==UserScript==
// @name F->C convert
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Crude conversion of **F into Celsius equivalent
// @author You
// @match *://*/*
// @grant none
// ==/UserScript==
(function () {
'use strict';
const regex = /(\d+)F/gi;
const fahrenheitToCelsius = fahrenheit => (fahrenheit - 32) * 5/9;
var convertUnits = function () {
let paragraphs = document.querySelectorAll("p");
function farenheitReplace(match, p1, p2) {
return p1 + 'F【'+ Math.round(fahrenheitToCelsius(p1)*10)/10 + 'C】';
}
for (let i = 0; i < paragraphs.length; i++) {
paragraphs[i].innerHTML = paragraphs[i].innerHTML.replace(regex, farenheitReplace);
}
}
convertUnits();
})();
from everything-metric.
from everything-metric.
Related Issues (20)
- Add conversion for feet measures like 5'9
- Fix for ikea HOT 1
- convert 400 degrees
- recipe mode
- 2021 1/4 oz converted
- Farenheit to Celsius missed conversion HOT 3
- Add support for square-mile (with - instead of spaces)
- Promo image: show a weight for balance scales instead of a dumbbell?
- Pounds vs lbs HOT 5
- Add psi (pounds per square inch) to kg/cm^2.
- Would be complete if it could also convert time, eg. 1:00 PM to 13:00
- Option to see numbers in cm up to a certain value instead of always seeing meter when above 100 cm.
- Another edge-case of wrongful conversion in*in != cm*cm
- Another edge case on etsy.com when using non-us currency where one value stops converting HOT 2
- Support L15.7in W0.59in H0.4in
- Having the option to run on demand
- Wrong conversion
- Not Converting Ranges Properly
- Microsoft Planner Incompatibility HOT 1
- Safari Extension
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from everything-metric.