https://github.com/maximfersko/convertor_decimal
Implementation convertor for working with the Decimal data type
https://github.com/maximfersko/convertor_decimal
data-structures decimal-converter decimal-floating-point decimal-numbers
Last synced: 10 months ago
JSON representation
Implementation convertor for working with the Decimal data type
- Host: GitHub
- URL: https://github.com/maximfersko/convertor_decimal
- Owner: maximfersko
- License: gpl-3.0
- Created: 2023-02-27T13:08:52.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-01T20:29:56.000Z (almost 3 years ago)
- Last Synced: 2025-03-12T05:29:17.799Z (about 1 year ago)
- Topics: data-structures, decimal-converter, decimal-floating-point, decimal-numbers
- Language: C
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lib_decimal
Implementation of a convertors for working with the Decimal data type
### Convertors
| Convertor | Function |
| ------ | ------ |
| From int | int from_int_to_decimal(int src, decimal *dst) |
| From float | int from_float_to_decimal(float src, decimal *dst) |
| To int | int from_decimal_to_int(decimal src, int *dst) |
| To float | int from_decimal_to_float(decimal src, float *dst) |
Return value - code error:
- 0 - SUCCESS
- 1 - CONVERTING ERROR