Re: Datatype checking in DotNET



Daniel Hobson wrote:
Oh what a mess from that last message (/me has to watch my copy and pasting LOL!):-

Hi Nicholas,

Yeah I am doing that now at the moment for example as based on the given
example previously:-

I use StrToFloat, if this fails, it raises an exception (Which is fine of
course).

But what I am trying to achieve here is to ensure the data integrity, does
the data meet the float bounds?????

StrToFloat will almost certainly do that too. Give it a try with a really big float, something like 10E1000.

Cheers,
Nicholas Sherlock
.



Relevant Pages

  • Re: Datatype checking in DotNET
    ... Yeah I am doing that now at the moment for example as based on the given ... But what I am trying to achieve here is to ensure the data integrity, ... the data meet the float bounds????? ... (IntImSavingToo)) ...
    (comp.lang.pascal.delphi.misc)
  • Re: Datatype checking in DotNET
    ... You can use a function called StrToFloat ... But what I am trying to achieve here is to ensure the data integrity, does the data meet the float bounds????? ... (IntImSavingToo)) ...
    (comp.lang.pascal.delphi.misc)
  • Re: Datatype checking in DotNET
    ... I use StrToFloat, if this fails, it raises an exception (Which is fine of ... But what I am trying to achieve here is to ensure the data integrity, does the data meet the float bounds????? ... StrToFloat will almost certainly do that too. ...
    (comp.lang.pascal.delphi.misc)
  • Re: FPU Control World
    ... I have never, yet, found a problem with Delphi's StrToFloat. ... "float" storage and calculations. ...
    (borland.public.delphi.language.basm)