sys.osVersion

Syntax sys.osVersion ()

Params None required.

Action Identifies the currently running version of the Operating System.

Returns A string that identifies the version of the currently-running Operating System.

Examples sys.osVersion ()

   » 7.0

sys.osVersion ()

   » 4.0.1381

Notes Since a version number can contain more than one decimal point, you should not attempt to convert the return value from this verb into a decimal number for comparison or other purposes.

See Also sys.os

Discuss