Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Documentation: .format() and related #38

Open
ptoche opened this issue May 25, 2017 · 0 comments
Open

Documentation: .format() and related #38

ptoche opened this issue May 25, 2017 · 0 comments

Comments

@ptoche
Copy link

ptoche commented May 25, 2017

I'm a newbie. Love the format() function and related. I haven't fully explored, but I think one point could be emphasized in the documentation: it is possible to use the dot syntax, as in format.(), to format a tuple, e.g.

format.((1.2345, 6.789), precision=2)
("1.23","6.79")

It may be obvious to most, but it wasn't to me, so it took me a little while to figure it out.

Btw, it is easier to grab from the Juno console if you wrap the lot in println
println(format.((1.2345, 6.789), precision=2))
("1.23","6.79")

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant