]> www.ginac.de Git - cln.git/blob - src/float/lfloat/misc/cl_LF_to_LF.cc
Initial revision
[cln.git] / src / float / lfloat / misc / cl_LF_to_LF.cc
1 // LF_to_LF().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cl_LF.h"
8
9
10 // Implementation.
11
12 const cl_LF LF_to_LF (const cl_LF& x, uintC len)
13 {
14       var uintC oldlen = TheLfloat(x)->len;
15       if (len < oldlen) { return shorten(x,len); }
16       if (len > oldlen) { return extend(x,len); }
17       // len = oldlen
18       return x;
19 }