Mercurial > repos > rliterman > csp2
view CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/opt/bbmap-39.01-1/current/json/JsonLiteral.java @ 68:5028fdace37b
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 16:23:26 -0400 |
parents | |
children |
line wrap: on
line source
package json; import java.util.Locale; public class JsonLiteral { public JsonLiteral(String s_){ s=s_; } public JsonLiteral(double value, int decimals){ s=String.format(Locale.ROOT, "%."+decimals+"f", value); } @Override public String toString(){return s;} private final String s; }