HomeManualTopicsTypesSymbols

std::to_integer

converts its argument into an integer number

Parameter

object
the object to be converted

Result

integer
the integer representation of object

Topic

Numbers

See also

std::parse_integer extracts an integer value from the start of the string
std::to_number converts its argument into a number
std::to_real converts its argument into a real (floating point) number
std::to_string returns a human readable presentation of the object

Implemented by

std_types::character returns the character's unicode as an integer value
std_types::device_id returns an integer value representing the device ID
std_types::error_number returns an integer value representing the error number
std_types::file_descriptor returns an integer value representing the file descriptor
std_types::file_type returns an integer value representing the file_type
std_types::group_id returns an integer value representing the group ID
std_types::inode_number returns an integer value representing the inode number
std_types::negative_integer returns the integer value
std_types::positive_integer returns the (unaltered) integer value
std_types::process_id returns an integer value representing the process id
std_types::real returns the integral part of the floating point number
std_types::shutdown_type returns an integer value representing the shutdown type
std_types::string converts the whole string into an integer value
std_types::user_id returns an integer value representing the user id