Re: Sun vs. Microsoft JVMs

From: Roedy Green (look-on_at_mindprod.com.invalid)
Date: 07/30/04


Date: Fri, 30 Jul 2004 14:30:05 GMT

On Fri, 30 Jul 2004 15:56:55 +0200, Rogan Dawes <discard@dawes.za.net>
wrote or quoted :

>
>If you are checking the float that the user enters has 2 decimal points
>(e.g. a currency), then serialise it and send it to the server, which
>then uses that number, it is not important to check that the number is
>still only precise to 2 decimal points?

You don't send a float. You send an int or long scaled by 100.

All you need is the bounds check.

-- 
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming. 
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.


Relevant Pages

  • Re: OT: HP and US dollar
    ... > The Chinese peg the yaun to the dollar. ... The US gov't is urging China to float their currency but China probably ...
    (comp.os.vms)
  • Re: The Brilliance of Moving US Manufacturing Jobs to China
    ... All them stocks have a 'free float', ... A currency that floats does not have a band it can float in, ... Chinese people deserve to be ... We have a minimum wage, ...
    (misc.writing)
  • Re: The Brilliance of Moving US Manufacturing Jobs to China
    ... >>> With no regard for personal safety or the comfort of others, ... All them stocks have a 'free float', ... >>> This is not floating your currency in the sense Josh is meaning. ...
    (misc.writing)
  • Re: Access-0.25 shows as zero in table-I want 0.25
    ... Integer to Float or Double; or change the datatype of the field itself ... from Number to Currency. ... places with no roundoff problems. ... Depending on your version of Access, you may also have a Decimal size ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Currency and Number data type
    ... You refer to Float data type - this has confused me ... Float - is it the same as the Decimal option when looking ... >>better to use Currency data type and format it as say ... >It depends on the calculation. ...
    (microsoft.public.access.queries)