summaryrefslogtreecommitdiff
path: root/Master/texmf/asymptote/plain_strings.asy
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-05-31 23:08:27 +0000
committerKarl Berry <karl@freefriends.org>2012-05-31 23:08:27 +0000
commit43302e4235ec0431ecd3365616212c18892d6187 (patch)
tree265e5d6b8af761d19b3ad3cfc6de4a36696c8857 /Master/texmf/asymptote/plain_strings.asy
parent359f8fc550d95dcb9c5cae523b0f28a117ca4996 (diff)
asymptote 2.16
git-svn-id: svn://tug.org/texlive/trunk@26747 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/asymptote/plain_strings.asy')
-rw-r--r--Master/texmf/asymptote/plain_strings.asy8
1 files changed, 7 insertions, 1 deletions
diff --git a/Master/texmf/asymptote/plain_strings.asy b/Master/texmf/asymptote/plain_strings.asy
index 98f72f460aa..a466159d9c7 100644
--- a/Master/texmf/asymptote/plain_strings.asy
+++ b/Master/texmf/asymptote/plain_strings.asy
@@ -5,6 +5,7 @@ string defaultformat(int n, string trailingzero="", bool fixed=false,
}
string defaultformat=defaultformat(4);
+string defaultseparator="\!\times\!";
string ask(string prompt)
{
@@ -208,9 +209,14 @@ string math(real x)
return math((string) x);
}
+string format(string format, real x, string locale="")
+{
+ return format(format,defaultseparator,x,locale);
+}
+
string format(real x, string locale="")
{
- return format(defaultformat,x,locale);
+ return format(defaultformat,defaultseparator,x,locale);
}
string phantom(string s)