add note about lacking fp parse routine

This commit is contained in:
Irmen de Jong 2023-06-16 00:12:52 +02:00
parent 2a96f93919
commit 1b573d6552

View File

@ -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
--------