We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5effa72 commit bfdd5dbCopy full SHA for bfdd5db
contrib/numpy/datatypes.md
@@ -216,6 +216,20 @@ The `timedelta64()` used to find the difference between the `datetime64()`. The
216
# 366 days
217
# timedelta64[D]
218
```
219
+## Additional Data Type (`longdouble`)
220
+`longdouble` is a data type that provides higher precision than the standard double-precision floating-point (`float64`) type.
221
+
222
+``` python
223
+ import numpy as np
224
225
+ arr = np.longdouble([1.222222, 4.44, 45.55])
226
227
+ print(arr, arr.dtype)
228
229
+ # Output:
230
+ # [1.222222 4.44 45.55] float128
231
+```
232
233
# Data Type Conversion
234
`astype()` function is used to the NumPy object from one type to another type.
235
0 commit comments