C.float(value)
Creates a new C Value of type float
. This function is a simplified wrapper around the Value constructor.
Return value
This function returns a ValueExample
local c = require 'c'
-- Defines a C Value of type "float", initialized with the value 3.14
local val = c.float(3.14)
-- Prints the C Value
print(val)