リファレンス · ジャーニーモード:ホーマン遷移・打ち上げ窓・フリップ&バーンの旅
percentOfLight関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The share of the speed of light, with enough digits that it is never rounded up to 100: 99.999 999 99 % for a speed a hair under c.
インポート
import { percentOfLight } from "@johnmorrisdotca/uchusen-rockets/journey";
定義
function percentOfLight(ms: number): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
ms | number | Metres a second. |
戻り値
string
The percent, in groups of three digits.
例
import { percentOfLight } from "@johnmorrisdotca/uchusen-rockets/journey";
console.log(percentOfLight(29_780), percentOfLight(299_792_457.9999));0.0099 % 99.999 999 999 966 63 %出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。