Publish VCC Plus OSS source distribution for 3.6.2 build 60

This commit is contained in:
Brian Holman committed 2026-11-13 00:14:03 -07:00
commit c652a5276d
1192 files changed
+272368

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef VCC_DECIMAL_H
#define VCC_DECIMAL_H
#if !defined(_COCO_BASIC_) || defined(_CMOC_MC6839_) || defined(_CMOC_NATIVE_FLOAT_)
#error vcc_fixed requires the CoCo BASIC floating-point backend
#endif
// Write value with 0 through 3 decimal places. Its magnitude must be below
// 65536 before rounding. Round the represented value to nearest, with ties
// away from zero. A rounded zero is unsigned. Link with vcccompat.
// Return the full character count, excluding the terminator. If capacity is
// positive, write a terminated prefix. NULL is valid only for zero capacity.
// Return -1 for a bad argument or range, emptying a writable destination.
int vcc_fixed(char *dest, unsigned capacity, float value, unsigned char places);
#endif