math problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bas Cost Budde

    #31
    Re: OT: Translation machines

    Cardman wrote:
    [color=blue][color=green]
    >>I would.[/color]
    >
    > Then there is the other 77 pages...
    >
    > My best idea for having a multiple language site would be to remove as
    > much information as possible, including minimum item information with
    > no real description except the photo, then to have this very compacted
    > site translated into many languages as possible.
    >
    > The only real problem is when adding new items, but you can just learn
    > the phrase "No Information Available" in all the languages.[/color]

    LOL
    [color=blue]
    > Having my current site translated, even for free, is a crazy idea,
    > when other languages cannot be maintained for any real time, despite
    > such promises.[/color]

    True. Yet it happens that especially Dutch (or, to be honest, germanic
    languages in general) needs manual assistance. Keep Systran. Please do.

    Just checked the German version--it can be read.

    But for the Dutch version, how much time/patience have you got? The
    offer stands. Translating into Dutch is not as much a problem for me as
    translating into English ;-)

    --
    Bas Cost Budde


    Comment

    • Bas Cost Budde

      #32
      Re: OT: Translation machines

      You know what? Relieve some of the strain on the translation machines by
      using shorter sentences. (Sorry, that is a bad example).

      An example:

      "To begin with then if this is your first visit then odds are that you
      came here because someone you know recommended you to visit"
      this is bound to cause trouble.

      "Is this your first visit? Possibly your friend has recommended this
      site to you"
      has a little more universal structure. Maybe it is not your style of
      writing; but you won't develop a style of writing in 8000 languages,
      would you?
      --
      Bas Cost Budde


      Comment

      • Cardman

        #33
        Re: math problem

        On Tue, 3 Feb 2004 12:34:58 +0000, Dr John Stockton
        <spam@merlyn.de mon.co.uk> wrote:
        [color=blue]
        >One fundamental error is that Math.floor is being used where Math.round
        >is needed.[/color]

        The calculation is being done for VAT. Customs & Excise rules state
        that how the VAT value is rounded is the choice of the VAT registered
        company, but the system used must always be constant.

        Since I believe in giving that 1p to my customers instead of tax man,
        then that is why the Math.floor function is used.
        [color=blue]
        >Another is that there is almost no intrinsic need to round numbers to a
        >multiple of 0.01; the need is to convert a Number to a String with two
        >decimal places.[/color]

        The need is to display the correct answer, where that is being done
        string or no string.

        It is quite interesting when you examine this problem at the bit
        level, but why the used a rubbish fuzzy number system in the first
        place is a good question.

        Cardman


        Comment

        • Cardman

          #34
          Re: OT: Translation machines

          On Tue, 03 Feb 2004 23:17:17 +0100, Bas Cost Budde <bas@heuveltop. org>
          wrote:
          [color=blue]
          >You know what? Relieve some of the strain on the translation machines by
          >using shorter sentences. (Sorry, that is a bad example).
          >
          >An example:
          >
          >"To begin with then if this is your first visit then odds are that you
          >came here because someone you know recommended you to visit"
          >this is bound to cause trouble.
          >
          >"Is this your first visit? Possibly your friend has recommended this
          >site to you"
          >has a little more universal structure. Maybe it is not your style of
          >writing; but you won't develop a style of writing in 8000 languages,
          >would you?[/color]

          It is a case that people with multiple language skills can better
          understand the language construct or grammar. Others of us are still
          working on the one we have.

          Since that text of mine seems a bit doggy these days, then something
          like "Should this be your first visit to this site, then the odds are
          that someone told you to visit" would be better.

          Yes I could go and rewrite my entire site and improve the text, but I
          work on a gradual improvement system. So when I am doing some large
          work on a page, then I can review all the text on that page.

          Over the last three and a half years that Welcome page first got
          wrote, then about two years ago it got improved. I have been feeling
          for a long time that it needs another improvement.

          Cardman


          Comment

          • Cardman

            #35
            Re: OT: Translation machines

            On Tue, 03 Feb 2004 22:59:58 +0100, Bas Cost Budde <bas@heuveltop. org>
            wrote:
            [color=blue]
            >Cardman wrote:
            >[color=green]
            >> Having my current site translated, even for free, is a crazy idea,
            >> when other languages cannot be maintained for any real time, despite
            >> such promises.[/color]
            >
            >True. Yet it happens that especially Dutch (or, to be honest, germanic
            >languages in general) needs manual assistance. Keep Systran. Please do.[/color]

            Now you like it?
            [color=blue]
            >Just checked the German version--it can be read.[/color]

            That is good news then, but are you sure that was not the Babblefish
            version of the German language?
            [color=blue]
            >But for the Dutch version, how much time/patience have you got? The
            >offer stands. Translating into Dutch is not as much a problem for me as
            >translating into English ;-)[/color]

            Should you really desire to translate my site into Dutch, then be my
            guest. As the worst case situation is that it just gets neglected if
            you get interested in other things.

            Just don't try translating the News page, when I tend to type a lot,
            where that News goes all the way back to 2000.

            The best way to do this is to just translate the paragraphs into a
            text file, where I can then paste these into the right sections on my
            HTML pages.

            Should you really want to translate all suitable pages, then there are
            about 38 pages excluding all the News ones. There are a few pages that
            are not easy to find, where I would have to point those out.

            The first job would be to translate the welcome page and the menu
            text.

            And since it is best to e-mail me to discuss this further, then you
            can do so at yourads at cardman.co.uk.

            Well, good luck, when the last attempt to translate my former site was
            back in 1998 to Svenska. For nostelga purproses, then I have put the
            Swedish version of my old site here...


            You can see that 9 pages were translated before he gave up, where I
            will keep that up for a few days before removing it again.

            Cardman


            Comment

            • DJ WIce

              #36
              Re: OT: Translation machines

              : I have been feeling
              : for a long time that it needs another improvement.
              Maybe, you can test serverside if one visits for the first time.
              You can check with script or serverside if one comes via google..

              So you don't need to guess.. that bad.

              Then it shows more professional I think.

              And maybe just start to tell people what's the site about.. instead of
              guessing where they come from or how that they did find you.

              Maybe you want items to be clickable and then be added to a basket.
              PHP-Nuke is a free php/MySQL script to built a website that also has
              shopping script and can handle multiple languages.

              Wouter


              Comment

              • Jim Ley

                #37
                Re: OT: Translation machines

                On Tue, 03 Feb 2004 02:24:42 +0000, Cardman <do-not@spam-me.com>
                wrote:
                [color=blue]
                >Then it is odd how my Atlas says that the languages used there are
                >Dutch and Frisian.[/color]

                It probably tells you the official language of Eire is Gaelic too, I
                wouldn't bet on your chances of finding a speaker, let alone a speaker
                who doesn't also understand English.

                Jim.
                --
                comp.lang.javas cript FAQ - http://jibbering.com/faq/

                Comment

                • Cardman

                  #38
                  Re: OT: Translation machines

                  On Wed, 04 Feb 2004 12:55:38 GMT, jim@jibbering.c om (Jim Ley) wrote:
                  [color=blue]
                  >On Tue, 03 Feb 2004 02:24:42 +0000, Cardman <do-not@spam-me.com>
                  >wrote:
                  >[color=green]
                  >>Then it is odd how my Atlas says that the languages used there are
                  >>Dutch and Frisian.[/color]
                  >
                  >It probably tells you the official language of Eire is Gaelic too,[/color]

                  English followed by Irish Gaelic apparently.
                  [color=blue]
                  >I wouldn't bet on your chances of finding a speaker, let alone a
                  >speaker who doesn't also understand English.[/color]

                  I believe the difference is that Ireland (Eire) has accepted the fact
                  that English has assimilated the population, but they have not
                  scrubbed off the former national language yet.

                  The same thing happens in Wales to a lesser degree, when more people
                  their speak English than Welsh. One reason could be the neighbouring
                  English crossing the mountains into dragon country.

                  It would be nice had it listed what a large percentage of the
                  population can speak, instead of what the politicians desire the
                  population to only speak.

                  Cardman


                  Comment

                  • Bas Cost Budde

                    #39
                    Re: OT: Translation machines

                    Jim Ley wrote:
                    [color=blue]
                    > [the atlas] probably tells you the official language of Eire is Gaelic too, I
                    > wouldn't bet on your chances of finding a speaker, let alone a speaker
                    > who doesn't also understand English.[/color]

                    Maybe the oldest people?

                    My atlas notes gaelic as regional (western parts) and diminishing in
                    use. No notes about first or second language.

                    --
                    Bas Cost Budde


                    Comment

                    • Dr John Stockton

                      #40
                      Re: math problem

                      JRS: In article <gf902093tk4600 3glk66bghb9j9oj 9v39p@4ax.com>, seen in
                      news:comp.lang. javascript, Cardman <do-not@spam-me.com> posted at Tue, 3
                      Feb 2004 23:04:36 :-

                      (VAT stuff) : I was not addressing your situation, but the defects of
                      your answer to Chiwa's original question, and the probable context of
                      that question. When responding to an article in News, it is wise to
                      examine the position of that article in its thread, and at least to
                      review its immediate predecessors.
                      [color=blue][color=green]
                      >>Another is that there is almost no intrinsic need to round numbers to a
                      >>multiple of 0.01; the need is to convert a Number to a String with two
                      >>decimal places.[/color]
                      >
                      >The need is to display the correct answer, where that is being done
                      >string or no string.[/color]

                      Numbers cannot be displayed; only strings can. On output of a
                      javascript number, there is an automatic conversion to string.



                      Consider document.write( 3.00) - the result will be 3, not
                      3.00, and that is correct by language definition.

                      The usual reason for wanting to truncate a Number to a multiple of 0.01
                      is that a currency calculation with input sums to two places gives a
                      result with rounding errors which displays something like 3.00000000001;
                      "numeric truncation" and "numeric rounding" both give a Number of 3,
                      displaying as 3. Those who use numeric truncation eventually discover
                      that they need to change to numeric rounding, in order not to lose one
                      unit up to half the time.

                      But they then see that sums of money such as three pounds, three pounds
                      five pence, and three pounds ten pence display as 3 3.05 3.1, whereas
                      convention demands 3.00, 3.05, 3.10. To get those in javascript the
                      Number must be converted to a String with two decimal places before
                      output.

                      The conversion needs a function.

                      There is no need to round the number before the function; it is better
                      to do it within.




                      I see a possible problem with your VAT approach. VAT here is 17.5%.

                      In any language using IEEE Doubles,
                      1.175 - 1.0 - 0.125 = 0.0500000000000 00044
                      0.175 - 0.125 = 0.0499999999999 9999
                      Here 1.0 and 0.125 are numbers that an IEEE Double can represent
                      exactly. So 1.175 is stored as slightly more, but 0.175 as slightly
                      less.

                      Thus for ten items costing GBP 1.00 exc. VAT, with truncation, the
                      customer may be called on to pay GBP 11.75, and the VATman may be
                      offered GBP 1.74. Accounts may show a discrepancy of one penny.


                      Amusing thought : % means /per centum/. Literally, a VAT rate of 17.5%
                      means not that the tax is the net times 0.175, but that for every 100
                      pence in the net the tax is 17.5 pence --- and 17.5 can of course be
                      represented exactly. If the calculation had been done literally,
                      calculating the pennies of VAT from the hundreds-of-pence net, the
                      results would have been exact.

                      --
                      © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
                      <URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang. javascript
                      <URL:http://www.merlyn.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
                      <URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.

                      Comment

                      • Jim Ley

                        #41
                        Re: OT: Translation machines

                        On Wed, 04 Feb 2004 15:13:19 +0000, Cardman <do-not@spam-me.com>
                        wrote:
                        [color=blue]
                        >On Wed, 04 Feb 2004 12:55:38 GMT, jim@jibbering.c om (Jim Ley) wrote:
                        >[color=green]
                        >>On Tue, 03 Feb 2004 02:24:42 +0000, Cardman <do-not@spam-me.com>
                        >>wrote:
                        >>[color=darkred]
                        >>>Then it is odd how my Atlas says that the languages used there are
                        >>>Dutch and Frisian.[/color]
                        >>
                        >>It probably tells you the official language of Eire is Gaelic too,[/color]
                        >
                        >English followed by Irish Gaelic apparently.[/color]

                        So it has nothing to do with national languages, English is not a
                        national language of Eire.
                        [color=blue]
                        >I believe the difference is that Ireland (Eire) has accepted the fact
                        >that English has assimilated the population,[/color]

                        It'd had assimilated the population even before 1911 I believe.
                        [color=blue]
                        >It would be nice had it listed what a large percentage of the
                        >population can speak, instead of what the politicians desire the
                        >population to only speak.[/color]

                        What? The Irish don't even get the EU to produce documents in it
                        national language (uniquely AIUI) because so few people can.

                        Jim.
                        --
                        comp.lang.javas cript FAQ - http://jibbering.com/faq/

                        Comment

                        Working...