userland: add archive tools and pinned GoAWK, esbuild, and QuickJS
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
BEGIN {
|
||||
split(" 1.234 ", f, "x") # create a numeric string (strnum) value
|
||||
OFMT = "%.1f"
|
||||
CONVFMT = "%.2f"
|
||||
|
||||
# Check whether a strnum is displayed the same way before and
|
||||
# after force_number is called. Also, should numeric strings
|
||||
# be formatted with OFMT and CONVFMT or show the original string value?
|
||||
|
||||
print f[1] # OFMT
|
||||
print (f[1] "") # CONVFMT
|
||||
|
||||
# force conversion to NUMBER if it has not happened already
|
||||
x = f[1]+0
|
||||
|
||||
print f[1] # OFMT
|
||||
print (f[1] "") # CONVFMT
|
||||
}
|
||||
Reference in New Issue
Block a user