We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for all.
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
| const base10Length = function (n) { | |
| let nn = BigInt(n); | |
| let a = 1n; | |
| let b = 1n; | |
| for (;;) { | |
| const c = BigInt(10n * a); | |
| if (c > nn) { | |
| return Number(b); | |
| } | |
| a = c; |
| <script> | |
| import Title from './Title.svelte'; | |
| </script> | |
| <Title tag={ 'h1' }>Hello world!</Title> | |
| <Title tag={ 'h2' }>Hello world!</Title> | |
| <Title tag={ 'h3' }>Hello world!</Title> | |
| <Title tag={ 'h4' }>Hello world!</Title> | |
| <Title tag={ 'h5' }>Hello world!</Title> | |
| <Title tag={ 'h6' }>Hello world!</Title> |
| export declare type NumOrBigInt = (bigint | number); | |
| export declare type GenericNumber<T> = { | |
| value: T; | |
| limit1: T; | |
| limit2: T; | |
| }; | |
| export declare type NumberClamp = GenericNumber<number>; | |
| export declare type BigIntClamp = GenericNumber<bigint>; | |
| export declare function clamp({ value, limit1, limit2 }: NumberClamp | BigIntClamp): NumOrBigInt; |
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for all.
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
| // Copyright © WJKM 2022 https://github.com/wmentha | |
| // SPDX-License-Identifier: MIT | |
| // Source: https://github.com/microsoft/calculator/blob/e9a974d1dd4333f0e99f4d61b9d5e179a50f274b/src/CalcViewModel/DataLoaders/UnitConverterDataLoader.cpp#L775-L936 | |
| { | |
| "Angle": [ | |
| { | |
| "unit": "Degree", | |
| "value": 1, | |
| "abbreviation": "deg" |