new command: base
[calc.git] / format.h
index d2f8f4ff0fc69fd655a41b125df4d1e30bbcf22b..b18b92d728e8ccb99d9e18a684fcd452ab9ade02 100644 (file)
--- a/format.h
+++ b/format.h
@@ -3,9 +3,6 @@
 
 /* global variables */
 
-extern int ibase;
-extern int obase;
-
 /* print function */
 
 void set_precision (int precision);
@@ -15,6 +12,11 @@ void set_format ();
 
 void free_format ();
 
+void set_base (int in, int out);
+int is_input_decimal ();
+char *show_base ();
+int get_ibase ();
+
 double print (double value);
 double printl (double value);