Difference: FloatingPointUnit (33 vs. 34)

Revision 342022-11-17 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
%DASHBOARD{ section="banner"
Line: 129 to 129
 fnegate ( r1 -- r2 ) r2 is the negation of r1 fround ( r1 -- r2 ) round r1 to an integral value using the "round to nearest" rule, giving r2
Added:
>
>
10**>f ( n -- r ) raise 10 to the power n, giving product r flog>n ( r -- n ) n is the base-ten logarithm of r
 fflags@ ( -- u ) get the current value of the Floating Point Status/Control register FPSCR fflags! ( u -- ) assign the given value to the Floating Point Status/Control register FPSCR
Line: 150 to 153
 e ( -- r ) r is e, approx. 2.7182818

f. ( r -- ) display, with a trailing space, the floating-point number r in fixed-point notation

Changed:
<
<
precision ( -- u ) return the number of significant digits currently used by F., FE., or FS. as u set-precision ( u -- ) set the number of significant digits currently used by F., FE., or FS. to u
>
>
fs. ( r -- ) display, with a trailing space, the floating-point number r in scientific notation fe. ( r -- ) display, with a trailing space, the floating-point number r in engineering notation fm. ( r -- ) display, with a trailing space, the floating-point number r in metric unit prefix notation precision ( -- u ) return the number of significant digits currently used by f., fs., fe., or fm. as u set-precision ( u -- ) set the number of significant digits currently used by f., fs., fe., or fm. to u
 
Line: 162 to 168
 fnumber (a # -- r u ) convert the specified string by a and # to float r, on success u is 1, otherwise 0 >float (a # -- r ? ) convert the specified string by a and # to float r, on success flag is true (more robust)
Deleted:
<
<
fs. ( r -- ) display, with a trailing space, the floating-point number r in scientific notation fe. ( r -- ) display, with a trailing space, the floating-point number r in engineering notation fm. ( r -- ) display, with a trailing space, the floating-point number r in metric unit prefix notation
 fsin ( r1 -- r2 ) r2 is the sine of the radian angle r1 fcos ( r1 -- r2 ) r2 is the cosine of the radian angle r1 ftan ( r1 -- r2 ) r2 is the principal radian angle whose tangent is r1
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback