From 1b573d6552ead6c28270a3fc0bfbcf163493694d Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Fri, 16 Jun 2023 00:12:52 +0200 Subject: [PATCH] add note about lacking fp parse routine --- docs/source/libraries.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/source/libraries.rst b/docs/source/libraries.rst index 011a974fb..a6f64f742 100644 --- a/docs/source/libraries.rst +++ b/docs/source/libraries.rst @@ -302,6 +302,14 @@ point variables. This includes ``print_f``, the routine used to print floating ``rndseedf (seed)`` Sets a new seed for the float pseudo-RNG sequence. Use a negative non-zero number as seed value. +.. attention:: + A "parse" routine to convert a string into a floating point number is suspiciously absent. + This is because unfortunately there is no such routine available on each of the compiler targets. + Only the C64 target has the ``floats.FREADSTR()`` kernal routine that parses a string into a float into FAC1, + but the X16 has no equivalent in the kernal rom at this time. + The same is true for parsing an *integer* number however you can use the parse routines in the ``conv`` module as + a stepping stone to eventually load the number into FAC1 using one of the available kernal routines. + graphics --------