( begin auto-generated from unhex.xml ) Converts a String representation of a hexadecimal number to its equivalent integer value. ( end auto-generated ) @webref data:conversion @param value String to convert to an integer @see PApplet#hex(int, int) @see PApplet#binary(byte) @see PApplet#unbinary(
(String value)
| 10262 | * @see PApplet#unbinary(String) |
| 10263 | */ |
| 10264 | static final public int unhex(String value) { |
| 10265 | // has to parse as a Long so that it'll work for numbers bigger than 2^31 |
| 10266 | return (int) (Long.parseLong(value, 16)); |
| 10267 | } |
| 10268 | |
| 10269 | // |
| 10270 |
no outgoing calls
no test coverage detected