]> www.ginac.de Git - cln.git/blob - src/rational/input/cl_RA_from_string.cc
Initial revision
[cln.git] / src / rational / input / cl_RA_from_string.cc
1 // cl_RA (const char *) constructor.
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cl_rational_class.h"
8
9
10 // Implementation.
11
12 #include "cl_input.h"
13 #include "cl_rational_io.h"
14
15 cl_read_flags cl_RA_read_flags = {
16         syntax_rational,
17         lsyntax_all,
18         10,
19         { cl_float_format_ffloat, cl_float_format_lfloat_min, cl_true }
20 };
21
22 cl_RA::cl_RA (const char * string)
23 {
24         pointer = as_cl_private_thing(
25                 read_rational(cl_RA_read_flags,string,NULL,NULL));
26 }