[Gambas-user] Check on entered number having more than 6 digits not working
Emil Lenngren
emil.lenngren at ...626...
Mon Aug 13 18:18:47 CEST 2012
A 64-bit floating point value use to have about 14-15 correct digits.
/Emil
2012/8/13 nando <nando_f at ...951...>
> That's perfectly fine.
> Let me offer this plan of attack.
> Test if it is between -90 and +90
> multiply by 1,000,000 into an INTEGER
> which chops all decimal digits to the right of the decimal point.
> then if you need float, divide by 1,000,000.
> But if you do that , don't be surprised for digits farther to the right
> of the 6th decimal point because it's float.
> -Fernando
>
>
>
>
>
> ---------- Original Message -----------
> From: John Rose <john.aaron.rose at ...626...>
> To: GambasUsers MailingList <gambas-user at lists.sourceforge.net>
> Sent: Mon, 13 Aug 2012 14:31:32 +0100
> Subject: [Gambas-user] Check on entered number having more than 6 digits
> not working
>
> > Fernando,
> > The number of digits does matter. The use of this Gambas app is for
> > maintenance of a database which is used by an Android app that I'm
> > currently developing. I don't intend to discuss why the number of digits
> > matters to the Android app except to say that it does. Thus, the Gambas
> > app is required to do this validation.
> >
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> ------- End of Original Message -------
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list