FANDOM


The following functions are available in foldit Lua V2. Any not listed were excluded because of possible security issues. Documentation for these can be found on the Lua Web site.

If there is a function that you think should be included that isn't listed, make an argument for it in the foldit Forum. Show citations from the Lua Forum describing the implications of including this function, especially that it is safe.

Standard Functions

  • _VERSION
  • assert
  • error
  • ipairs
  • next
  • pairs
  • pcall
  • print (special implementation in foldit)
  • select
  • tonumber
  • tostring
  • type
  • unpack
  • xpcall

Math Functions

  • math.abs
  • math.acos
  • math.asin
  • math.atan
  • math.atan2
  • math.ceil
  • math.cos
  • math.cosh
  • math.deg
  • math.exp
  • math.floor
  • math.fmod
  • math.frexp
  • math.huge
  • math.ldexp
  • math.log
  • math.log10
  • math.max
  • math.min
  • math.modf
  • math.pi
  • math.pow
  • math.rad
  • math.random
  • math.randomseed
  • math.sin
  • math.sinh
  • math.sqrt
  • math.tan
  • math.tanh

OS Functions

  • os.clock
  • os.date
  • os.difftime
  • os.time

String Functions

  • string.byte
  • string.char
  • string.dump
  • string.find
  • string.format
  • string.gmatch
  • string.gsub
  • string.len
  • string.lower
  • string.match
  • string.rep
  • string.reverse
  • string.sub
  • string.upper

Table Functions

  • table.concat
  • table.insert
  • table.maxn
  • table.remove
  • table.sort
  • table.unpack
Community content is available under CC-BY-SA unless otherwise noted.