| www.delorie.com/gnu/docs/gmp/gmp_29.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
These functions assign new values to already initialized integers (see section 5.1 Initialization Functions).
mpz_set_d, mpz_set_q and mpz_set_f truncate op to
make it an integer.
This function returns 0 if the entire string is a valid number in base base. Otherwise it returns -1.
[It turns out that it is not entirely true that this function ignores
white-space. It does ignore it between digits, but not after a minus sign or
within or after "0x". We are considering changing the definition of this
function, making it fail when there is any white-space in the input, since
that makes a lot of sense. Send your opinion of this change to
bug-gmp@gnu.org. Do you really want it to accept "3 14" as
meaning 314 as it does now?]
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |