Data Type Conversion Help
#4
(05-02-2022, 08:26 PM)TarotRedhand Wrote: Simply put how do I convert the type of the result of the operation in the () from LONG to DOUBLE in the snippet below?

Code: (Select All)
Answer# = 1.0 + (ARowEnd& - ARowStart&)

Thanks

TR

Just use that line of code as is, you already specified Answer as DOUBLE using the # suffix, whatever the type of 1.0 + (ARowEnd& - ARowStart&) will evaluate to (probably SINGLE) will be automatically converted under the hood to mach your specified Answer# type.
Reply


Messages In This Thread
Data Type Conversion Help - by TarotRedhand - 05-02-2022, 08:26 PM
RE: Data Type Conversion Help - by bplus - 05-02-2022, 09:17 PM
RE: Data Type Conversion Help - by Jack - 05-02-2022, 09:54 PM
RE: Data Type Conversion Help - by RhoSigma - 05-02-2022, 10:29 PM
RE: Data Type Conversion Help - by TarotRedhand - 05-03-2022, 06:15 PM



Users browsing this thread: 1 Guest(s)