comparison 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
comparison
equal deleted inserted replaced
67:0e9998148a16 68:5028fdace37b
1 package json;
2
3 import java.util.Locale;
4
5 public class JsonLiteral {
6
7 public JsonLiteral(String s_){
8 s=s_;
9 }
10
11 public JsonLiteral(double value, int decimals){
12 s=String.format(Locale.ROOT, "%."+decimals+"f", value);
13 }
14
15 @Override
16 public String toString(){return s;}
17
18 private final String s;
19
20 }