C.double(value)



Creates a new C Value of type double. This function is a simplified wrapper around the Value constructor.

Return value

This function returns a Value

Example

local c = require 'c' -- Defines a C Value of type "double", initialized with the value 3.141592653589793 local val = c.double(3.141592653589793) -- Prints the C Value print(val)