Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock Float:floatsuperround(Float:value, count)
- {
- new
- Float:tenincount = float(pow(10, count)),
- Float:intpart = float(floatround(value, floatround_tozero)),
- Float:fractpart = float(floatround(floatfract(value) * tenincount));
- return intpart + fractpart / tenincount;
- }
- stock pow(value, degree)
- {
- new
- result = 1;
- while (degree--) {
- result *= value;
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement