-- Leo's gemini proxy
-- Connecting to gemini.mingmengtou.org:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini;lang=en-GB
i just dabble so i often don't know what i don't know, however...
writing a short v ditty to print golden ratios and areas to optional significant figures. i use println to output.
seems in v println will output 3 digits after the decimal point!! i worked round by converting my float to str.
mut x := 4.123456789012345 places := 7 // not what i want println('${math.round_sig(x,places):10}') // 4.123 // better:-) println('${math.round_sig(x,places).str():10}') // 4.1234568
all this may be because i have no idea what i am doing:-)
---
---
neil.gemini@mingmengtou.org
content licensed CC-BY-SA 4.0 unless stated.
-- Response ended
-- Page fetched on Thu May 2 06:31:12 2024