Skip to content

Proposal: Enable the migration of Floating-Point Calculations from Math to StrictMath #707

@halibobo1205

Description

@halibobo1205

Simple Summary

     This proposal aims to activate the #87 network parameter to migrate the floating-point calculations from java.lang.Math to java.lang.StrictMath for cross-platform computational compatibility, for more details, please refer to TIP-697.

Motivation

     Up to GreatVoyage-v4.7.6(Anaximander), Java-Tron has utilized the class Math for floating-point calculations. However, the class Math may yield varying calculation results for identical inputs across different hardware platforms and JDK versions.
Looking ahead to potential cross-platform support and broader JDK version compatibility, Java-Tron needs to transition from java.lang.Math to a mathematical library that ensures consistent calculation results across platforms and newer JDK versions.

How to Initialize the Voting Request

  • Open the pow calculation algorithm migration proposal.
    • createProposal 87 1

Backwards Compatibility

     Since consensus-affecting changes will only be activated post-proposal approval, this migration maintains backward compatibility and preserves consensus from the genesis block onward.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions