a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Static lib:
 amiga.lib
  ACrypt
  AddTOF
  ArgArrayDone
  ArgArrayInit
  ArgInt
  ArgString
  BeginIO
  CallHook
  CallHookA
  CheckRexxMsg
  CoerceMethod
  CoerceMethodA
  CreateExtIO
  CreatePort
  CreateStdIO
  CreateTask
  CxCustom
  CxDebug
  CxFilter
  CxSender
  CxSignal
  CxTranslate
  DeleteExtIO
  DeletePort
  DeleteStdIO
  DeleteTask
  DoMethod
  DoMethodA
  DoSuperMethod
  DoSuperMethodA
  FastRand
  FreeIEvents
  GetRexxVar
  HookEntry
  HotKey
  InvertString
  LibAllocPooled
  LibCreatePool
  LibDeletePool
  LibFreePooled
  NewList
  RangeRand
  RemTOF
  SetRexxVar
  SetSuperAttrs
  TimeDelay
  afp
  arnd
  dbf
  fpa
  printf
  sprintf
  stdio
Include
GuruMeditation
Docs » Autodocs » amiga.lib » afp

NAME

	afp - Convert ASCII string variable into fast floating point

SYNOPSIS

	ffp_value = afp(string);

FUNCTION

	Accepts the address of the ASCII string in C format that is
converted into an FFP floating point number.
The string is expected in this Format:
{S}{digits}{'.'}{digits}{'E'}{S}{digits}
<*******MANTISSA*******><***EXPONENT***>
Syntax rules:
Both signs are optional and are '+' or '-'. The mantissa must be
present. The exponent need not be present. The mantissa may lead
with a decimal point. The mantissa need not have a decimal point.
Examples: All of these values represent the number fourty-two.
42 .042e3
42. +.042e+03
+42. 0.000042e6
0000042.00 420000e-4
420000.00e-0004
Floating point range:
Fast floating point supports the value zero and non-zero values
within the following bounds -
18 20
9.22337177 x 10 > +number > 5.42101070 x 10
18 -20
-9.22337177 x 10 > -number > -2.71050535 x 10
Precision:
This conversion results in a 24 bit precision with guaranteed
error less than or equal to one-half least significant bit.

INPUTS

	string - Pointer to the ASCII string to be converted.

RESULT

	string - points to the character which terminated the scan
equ - fast floating point equivalent

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Phenomena

SPB
TRSI
PHA
KEF

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se