BBC BASIC
« Help section correction »

Welcome Guest. Please Login or Register.
Jan 20th, 2018, 6:03pm


Cross-platform BBC BASIC (Win32, Linux x86, Android, Mac OS-X, Raspberry Pi)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Help section correction  (Read 287 times)
Edja
New Member
Image


member is offline

Avatar




PM


Posts: 22
xx Help section correction
« Thread started on: Jan 17th, 2017, 11:05am »

The Help section says :
Quote:
FN_getvaluefloat(objref%,"property.value")
This function retrieves a floating point property value and returns it as a FLOAT64 or FLOAT40 numeric variable depending on the current mode and variable type (n or n#):
n# = FN_getvalueint(oWB%,"ActiveSheet.cells(8,2).value")

If the application's internal data format is not floating point it will be converted to a floating point value if possible.

Shouldn't the above example not be replaced by
Code:
n = FN_getvaluefloat(oWB%,"ActiveSheet.cells(8,2).value") 
or
Code:
n# = FN_getvaluefloat(oWB%,"ActiveSheet.cells(8,2).value") 

Edja
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 689
xx Re: Help section correction
« Reply #1 on: Jan 17th, 2017, 1:40pm »

on Jan 17th, 2017, 11:05am, Edja wrote:
Shouldn't the above example not be replaced....

I don't think I wrote that section of the Help file, and I agree that it makes little sense at present.

The phrase "and returns it as a FLOAT64 or FLOAT40 numeric variable depending on the current mode and variable type" is 'stating the obvious' about what happens whenever a value is assigned to a numeric variable, and has no particular relevance either to the library being documented or to the specific function being described.

I've now deleted that text entirely.

Richard.
User IP Logged

Edja
New Member
Image


member is offline

Avatar




PM


Posts: 22
xx Re: Help section correction
« Reply #2 on: Jan 17th, 2017, 6:45pm »

The point I was trying to make was that the example in the paragraph about FN_getvaluefloat uses the function FN_getvalueint
I'm now wondering if I've missed some finer point ..?

Edja
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 689
xx Re: Help section correction
« Reply #3 on: Jan 17th, 2017, 7:24pm »

on Jan 17th, 2017, 6:45pm, Edja wrote:
The point I was trying to make was that the example in the paragraph about FN_getvaluefloat uses the function FN_getvalueint

You didn't mention that anywhere in your post. What you seemed to be drawing attention to was the reference to different float types, and the confusion between n# and n. I've made that change, but also deleted the accompanying text.

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Donate $6.99 for 50,000 Ad-Free Pageviews!


This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls