GTAG - Modding - Opcode Database - 01FB
Opcode Database
01FB
| Description | Gets the square root of a number. |
|---|---|
| Parameters (v2) | 1) Float (FLOAT) 2) (Returned) Float (FLOAT) |
| Games | |
| Category | Math |
| Command Name (IV) | SQRT |
| San Andreas | |
| sascm.ini | 01FB=2,sqrt %1d% store_to %2d% |
| Example | 01FB: sqrt 18@ store_to 28@ |
| Command Name | SQRT |
| Vice City | |
| sascm.ini | 01fb=2,%2d% = square_root %1d% |
| Example | 01FB: $761 = square_root $760 |
| Command Name | SQRT |
| GTA III | |
| gtascm.ini | 01fb=2,%2d% = square_root %1d% |
| Example | 01FB: $769 = square_root $768 |
| Command Name | SQRT |

