DecimalSystem is a powerful base conversion library that can convert any (real) number to any base (over 1), including non-integer bases like base PI.
import {Num} from "decimalsystem"; new Num(10).toBase(Math.PI).toString();
The below demos (powered by the Desmos API) use DecimalSystem to help visualize the relationship between some common objects in geometry and their associated constants.
DecimalSystem is supported by Cratecode - Learn to code for free through interactive online lessons.