Skip to the content

Wakusei Planets惑星

The Sun, the planets and their moons as a clean line drawing, a shaded realistic drawing or a painted surface map, with real sizes, tilt and rotation, and the moons where they are at any date and time.

Wakusei is the Japanese word 惑星 for a planet. About the name

Contents

Reference · Facts, line drawings and positions

lineupKmfunction

A length in kilometres in words: grouped digits up to a million (up to a hundred million in Japanese), then 735 million km or 7.35億 km, and billion above a thousand million.

Import it

import { lineupKm } from "@johnmorrisdotca/wakusei-planets";

Definition

function lineupKm(km: number, lang: LineupLang): string

Parameters

NameTypeDescription
kmnumber

The length in kilometres.

langLineupLang

en or ja.

Returns

string

The text.

Examples

import { lineupKm } from "@johnmorrisdotca/wakusei-planets";

console.log(lineupKm(695_700, "en"), lineupKm(735_400_000, "en"), lineupKm(735_400_000, "ja"));
695,700 km 735 million km 7.35億 km

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/wakusei-planets 0.29.0.