Menu

Contants

jackjames
2025-05-10
2025-05-10
  • jackjames

    jackjames - 2025-05-10

    Constants:
    I need to define constants that have a value of type single (and also double).
    I know that the Const instruction is used only for strings.
    How can I make use single or double constants?
    Example:
    ' --- CONSTANTS ---
    Const LN2 As Single = 0.69314718056
    Const INV_LN2 As Single = 1.44269504089
    Const EPSILON As Single = 0.000001

     

    Last edit: jackjames 2025-05-10

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.