On this page
ctypes.c_longdouble
Prev: ctypes.c_long | Up: ctypes | Next: ctypes.c_longdouble_complex
Rel: ctypes.addressof, ctypes.alignment, ctypes.ArgumentError, ctypes.Array
Ref: docs.python.org — ctypes.c_longdouble
Tags: #public #python3 #stdlib #ctypes
Import
import ctypes
from ctypes import c_longdouble
Signature & Overview
ctypes.c_longdouble(...)
ctypes.c_longdouble class.
Usage
import ctypes
x = ctypes.c_longdouble(2.5)
assert x.value == 2.5
Gotchas
- Platform-dependent size (8 bytes on Windows/ARM64, 16 bytes on x86-64 Linux/macOS).
REPL Inspect
from ctypes import c_longdouble
help(c_longdouble)
Linked from
Related notes
- tuts/python3/stdlib_module/ctypes/c_long Linked here; links to this page; shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/c_longdouble_complex Linked here; links to this page; shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/ctypes/addressof Linked here; shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/alignment Linked here; shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/ArgumentError Linked here; shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/Array Linked here; shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/BigEndianStructure shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/BigEndianUnion shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/byref shared tags: #ctypes, #stdlib