Questions tagged [units-of-measurement]
Units of Measure are compile-time attributes that can be associated with numeric values, typically used to indicate length, volume, mass, and so on.
units-of-measurement
623
questions
2
votes
1
answer
77
views
issue with unit «knot» / «kn» with Dymola
I'm not sure but when switching to the last dymola version 2024x Refresh 1, I've lost the fact Dymola recognise the unit «kn» or «knot» (nautical mile per hour). The 2024x version used to recognise it....
0
votes
0
answers
39
views
flutter units of measurement
old question, what is unit of measurement in flutter? online chatter (eg SO 2018) says something like "logical pixels" or "density independent pixels". official docs also mention ...
0
votes
0
answers
27
views
Use ggplot2 and units package to define aesthetic mappings
I would like to create a plot where a variable (say z) defines a colour scheme for some points in a ggplot. For example:
library(ggplot2)
library(units)
#> udunits database from C:/Users/user/...
0
votes
1
answer
47
views
Correct way to add and subtract significant figures
There are actually two ways given to add or subtract significant figures in different books .In books like concepts of Physics by HC Verma it is written that round of the numbers given first and then ...
0
votes
0
answers
7
views
Are there any exceptions where errors are subracted
Can errors ever be subracted?
Any exceptional case where errors are subracted in measurement, like in relative error, percentage error,etc
Like whenever we calculate relative error in x/x+y we ...
1
vote
2
answers
94
views
Custom units in HKUnit for simple measurements like mass, length, and volume
HKQuantity and HKUnit support all of the common units of measurement, SI and otherwise, such as gram(), pound(), and stone().
The HealthKit classes also support custom complex units such as "foot-...
0
votes
2
answers
37
views
in python metpy.units not recognizing degC unit for temprature (calculatinh Heat Index)
i am calculating Heat Index (temprature, relative humidity) using python . showing error for units, thats why i am not able to calculate simple heat index
import pandas as pd
from metpy.calc import ...
0
votes
0
answers
21
views
Responsiveness seems different in VS Code and actual phone
*{
padding:0;
margin:0;
}
a{
text-decoration:none;
color:black;
}
ul{
list-style:none;
}
html{
color-scheme:light dark;
}
@media (prefers-color-scheme:dark){
#sidebar a{...
0
votes
0
answers
26
views
What does GB, MB, kB etc. mean in Microsoft Documentation?
Does anyone know if in official technical Microsoft documentation (e.g. https://learn.microsoft.com/en-us/azure/cosmos-db/concepts-limits) there is a consistent interpretation of data size units? That ...
0
votes
3
answers
58
views
How do I fix my unit converter in python? [duplicate]
Every time I try to convert it, it only shows the conversion from in. to mm.(aka the 1st expression)I would really appreciate it if you can help because I spent a long time.
a = input('Original Amount:...
0
votes
1
answer
42
views
TinyMCE - controlling font size of deployed text (font-size using EM)
I am using TinyMCE for content management in a website, that I develop. Meaning my client can input formatted text using TinyMCE editor and the website then outputs the html to appropriate place on ...
1
vote
1
answer
37
views
Getting wrong result using unitpy?
All three of the below print same properties, but why does last statement print 0 electronvolt?
import scipy
from unitpy import U, Q, Unit, Quantity
def print_properties(q):
print(q.unit)
...
3
votes
1
answer
161
views
Is there a less verbose way of expressing duration in ms and hours?
This C++ snippet prints a duration in ms and hours:
#include <iostream>
#include <chrono>
#include <thread>
using namespace std;
using namespace std::chrono;
int main() {
auto t0 ...
3
votes
1
answer
130
views
Formatting units and measurements. Why does Units init from symbol not produce same result as static init
Recently I came across a quite curious behavior regarding units and measurements in Swift which I can't understand. After creating measurements with units created with a static UnitMass accessor I can ...
0
votes
1
answer
50
views
DRF serializer validation of inputs across multiple nested fields
I'm using DRF serializers for models with measurements with units. Here's my model:
class Cargo(models.Model):
length = models.FloatField()
height = models.FloatField()
weight = models....