Skip to content
Snippets Groups Projects

Add tofixed lua function

Merged Hanicef requested to merge Hanicef/SRB2Classic:add-tofixed-lua into next

I'm honestly surprised that a function like this doesn't exist in Lua yet. What it simply does is that it parses a string into a fixed number instead of an integer, something that's useful when making custom commands that should be able to take decimals. If the string passed into the function is invalid, it will return nil, just like to tonumber.

Edited by Hanicef

Merge request reports

Pipeline passed for c208921c on Hanicef:add-tofixed-lua

Approval is optional
Ready to merge by members who can write to the target branch.

Merge details

  • 6 commits and 1 merge commit will be added to next.
  • Source branch will be deleted.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading