DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(gmp.info.gz) Simultaneous Float Init & Assign

Info Catalog (gmp.info.gz) Assigning Floats (gmp.info.gz) Floating-point Functions (gmp.info.gz) Converting Floats
 
 Combined Initialization and Assignment Functions
 ================================================
 
 For convenience, GMP provides a parallel series of initialize-and-set
 functions which initialize the output and then store the value there.
 These functions' names have the form `mpf_init_set...'
 
    Once the float has been initialized by any of the `mpf_init_set...'
 functions, it can be used as the source or destination operand for the
 ordinary float functions.  Don't use an initialize-and-set function on
 a variable already initialized!
 
  - Function: void mpf_init_set (mpf_t ROP, mpf_t OP)
  - Function: void mpf_init_set_ui (mpf_t ROP, unsigned long int OP)
  - Function: void mpf_init_set_si (mpf_t ROP, signed long int OP)
  - Function: void mpf_init_set_d (mpf_t ROP, double OP)
      Initialize ROP and set its value from OP.
 
      The precision of ROP will be taken from the active default
      precision, as set by `mpf_set_default_prec'.
 
  - Function: int mpf_init_set_str (mpf_t ROP, char *STR, int BASE)
      Initialize ROP and set its value from the string in STR.  See
      `mpf_set_str' above for details on the assignment operation.
 
      Note that ROP is initialized even if an error occurs.  (I.e., you
      have to call `mpf_clear' for it.)
 
      The precision of ROP will be taken from the active default
      precision, as set by `mpf_set_default_prec'.
 
Info Catalog (gmp.info.gz) Assigning Floats (gmp.info.gz) Floating-point Functions (gmp.info.gz) Converting Floats
automatically generated byinfo2html