More than three digits after the decimal point


+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Junior Member pe1pme's Avatar
    Join Date
    Dec 2007
    Posts
    89
    Thumbs Up
    Received: 1
    Given: 9
    Total Downloaded
    435.91 MB

    0 Not allowed!

    Default More than three digits after the decimal point

    Hi all,

    Apparently when I declare a variable as Float (Dim xxx As Float) I only get three digits after the decimal point!
    I desperately need four! (to calculate a transmitting frequency)
    Any ideas?

    Code:
    Include "Amicus18.inc"
    Dim inkomend As Word                'dit wordt straks de inkomende stream
    Dim frequentie As Float             'dit is de gewenste frequentie vanuit de opdrachtgever
    Dim teller As Word
    Dim kanaalnummer As Word            'dit is het kanaalnummer geextraheerd uit de inkomende stream
    
    
    Cls
    DelayMS 500
    For inkomend = 1000 To 1103         'nu simuleren we de inkomende stream
        kanaalnummer = inkomend - 1000
        frequentie = 144.7000 + (kanaalnummer * 0.0125)
        
        
        Print At 1,1, "Code= ", Dec inkomend
        Print At 2,1, "kanaal= ", Dec kanaalnummer
        Print At 1,14, "Freq= ", Dec frequentie
        Print At 1,30, "MHz"
        DelayMS 250
    Next inkomend
        
    
    
    
    
    End

    Thanks and a happy time to you all!

    Wim
    To be OLD and WISE you must first have to be YOUNG and STUPID!

  2. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #2
    Fanatical Contributor top204's Avatar
    Join Date
    Feb 2002
    Posts
    3,586
    Thumbs Up
    Received: 339
    Given: 161
    Total Downloaded
    1.99 GB

    1 Not allowed!

    Default Re: More than three digits after the decimal point

    Dec1, Dec2, Dec3, Dec4, Dec5, Dec6 etc...

    See page 324 of the compiler's manual.

  4. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  5. #3
    Junior Member pe1pme's Avatar
    Join Date
    Dec 2007
    Posts
    89
    Thumbs Up
    Received: 1
    Given: 9
    Total Downloaded
    435.91 MB

    0 Not allowed!

    Default Re: More than three digits after the decimal point

    I did ask a stupid question........I guess...... I did look in the manual but forgot to look at the Print command......
    Thank you Les!

    Wim
    To be OLD and WISE you must first have to be YOUNG and STUPID!

  6. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Send many digits with serial
    By davidsgr in forum Proton Plus Compiler v3
    Replies: 5
    Last Post: 31st January 2018, 23:47
  2. Display no decimal point on a float.
    By geoff_c in forum Proton Plus Compiler v3
    Replies: 7
    Last Post: 8th February 2017, 20:42
  3. [SOLVED !] LCD decimal point
    By Peter D in forum Proton Plus Compiler v3
    Replies: 8
    Last Post: 22nd February 2008, 13:01
  4. [SOLVED !] 7segment Decimal Point Value
    By willim in forum Proton Plus Compiler v3
    Replies: 11
    Last Post: 26th April 2007, 19:49

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts