##### Views

- Page
- Discussion
- View source
- History

# love.getVersion

Available since LÖVE 0.9.1
This function is not supported in earlier versions.

Gets the current running version of LÖVE.

## Function

### Synopsis

major, minor, revision, codename = love.getVersion( )

### Arguments

None.

### Returns

`number major`
  The major version of LÖVE, i.e. 0 for version 0.9.1.
`number minor`
  The minor version of LÖVE, i.e. 9 for version 0.9.1.
`number revision`
  The revision version of LÖVE, i.e. 1 for version 0.9.1.
`string codename`
  The codename of the current version.

## Examples

### display the current version

function love.draw()
local major, minor, revision = love.getVersion()
local str = string.format("Version %d.%d.%d", major, minor, revision)
love.graphics.print(str, 0, 0)
end

## See Also

- love

## Other Languages

Dansk – Deutsch – English – Español – Français – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Polski – Português – Română – Slovenský – Suomi – Svenska – Türkçe – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – ไทย – 日本語 – 正體中文 – 简体中文 – Tiếng Việt – 한국어
More info

Retrieved from "https://www.love2d.org/wiki/love.getVersion"
Categories: Templates | Functions

##### Personal tools

- Log in

##### Search

##### Toolbox

- What links here
- Related changes
- Special pages
- Printable version
- Permanent link
- Browse properties