diff options
author | Karl Berry <karl@freefriends.org> | 2019-11-06 22:15:00 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-11-06 22:15:00 +0000 |
commit | 8d918f88e6d576dc1612e5625a0ad802d17c8e13 (patch) | |
tree | 7866459f67ba7f4c37d87cf9ea8846b37915fadc /Build/source/utils/asymptote/base/rational.asy | |
parent | eb21dd9dc04d18b2ceda665ab6272d4a97926f38 (diff) |
asy 2.60 sources
git-svn-id: svn://tug.org/texlive/trunk@52659 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/base/rational.asy')
-rw-r--r-- | Build/source/utils/asymptote/base/rational.asy | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Build/source/utils/asymptote/base/rational.asy b/Build/source/utils/asymptote/base/rational.asy index d24da0d6645..a120c141232 100644 --- a/Build/source/utils/asymptote/base/rational.asy +++ b/Build/source/utils/asymptote/base/rational.asy @@ -176,15 +176,21 @@ string texstring(rational r) return s+"\frac{"+string(abs(r.p))+"}{"+string(r.q)+"}"; } -void write(file fout=stdout, string s="", rational r, suffix suffix=none) + +void write(file fout, string s="", rational r, suffix suffix=none) { write(fout,s+string(r),suffix); } +void write(string s="", rational r, suffix suffix=endl) +{ + write(stdout,s,r,suffix); +} + void write(file fout=stdout, string s="", rational[] a, suffix suffix=none) { if(s != "") - write(fout,s); + write(fout,s,endl); for(int i=0; i < a.length; ++i) { write(fout,i,none); write(fout,':\t',a[i],endl); |