Skip to content

6a - Edit UI - Shares - PAR Values: #32530

Closed

Description

@mstanton1

This ticket was duplicated from #31894.

In this ticket:

  • update Corrections
  • update Alterations

New system is not currently supporting share values with sufficient decimal places.

Example par value - 0.00088928412

  • 0.00214505608506776

To Do List:

  • System needs to support at least 20 decimal places
  • Only use the number of decimals used by user

image.png

This also affects decimal places on numbers >1 differently:

image.png

Examples of real data from COLIN:
7.30246823426
1.08333333333
That enhancement to support up to 20 decimal places should apply to both numbers > 1 and less than 1.

Scope of impact:

  • Incorporation Application
  • Continuation In
  • Amalgamation
  • Corrections (for above 3)
  • Alterations
  • PDF of Notice of Articles
  • Create UI, Edit UI

Activity

  1. added
    Entities Team
    on Feb 19, 2026
  2. added
    Entities - Data Migration
    on Feb 20, 2026
  3. severinbeauvais commented on Feb 25, 2026

    @severinbeauvais
    Collaborator

    On hold until the exact requirements are determined -- see #3837.

  4. severinbeauvais commented on Mar 3, 2026

    @severinbeauvais
    Collaborator

    Before

    image.png

    Known issues:

    • should not have $ for currencies other than CAD, USD and AUD
    • should have grouping (commas between groups of 3 digits)
    • should not use scientific notation for numbers greater than 1e-12 (0.000000000001)
    • should use scientific notation for numbers greater than 1e7 (10,000,000)

    After

    image.png

  5. severinbeauvais commented on Mar 4, 2026

    @severinbeauvais
    Collaborator

    Test Notes

    The par values you can input and that display (for shares and series) must support the following:

    • must be a number
    • must be greater than zero
    • must support very small decimal numbers (eg, 0.000000000000123)
    • must support very large decimal numbers (eg, 1,234,000,000,000)
    • must support up to 16 digits of precision, eg, following examples are actual values from COLIN db:
      • 0.00214505608506776 (15 digits)
      • 1000.0010001 (12 digits)
      • 175.588859 (9 digits)
      • 0.00000333332 (6 digits)
      • 0.1899999976 (10 digits)
      • 9999999.99 (9 digits)
      • 0.1000000015 (10 digits)
      • 12345678.12345678 (16 digits)
    • must support scientific notation for very large or very small numbers (eg, 1.23e-13, 1.234e+12)
    • no formatting for currencies other than CAD, USD and AUD

    See also #31894.

  6. forgeuxGH5 commented on Mar 9, 2026

    @forgeuxGH5
    Collaborator

    @mstanton @severinbeauvais is there a validation matrix or wireframe for this ticket? What I'm seeing in dev doesn't match the screenshots in this ticket. Are the screenshots the old or new version of the validation messages?

  7. severinbeauvais commented on Mar 9, 2026

    @severinbeauvais
    Collaborator

    Scott, what discrepancies are you seeing between Dev and the "after" screenshot above?


    Specifically for UX approval, I'm looking to validate the cutoffs that I implemented for very small and very large numbers. (These can be adjusted with a small code change.)

    • use scientific notation if number is smaller than 1E-12 (0.000000000001)
    • use scientific notation if number is larger than 1E10 (10,000,000,000)

    All other numbers display with the full number of digits on the left or right of the decimal point.

  8. forgeuxGH5 commented on Mar 10, 2026

    @forgeuxGH5
    Collaborator

    Where did the requirement to use scientific notation come from? Scientific notation doesn't seem appropriate for this table.

    Have staff reviewed/approved this?

  9. severinbeauvais commented on Mar 10, 2026

    @severinbeauvais
    Collaborator

    It's impossible to get away from scientific notation when entering a NUMBER in a form. Scientific notation is automatically applied (by the HTML input element) when the number has more than 20 right-size digits (eg, 100,000,000,000,000,000,000) or 6 left-side digits (eg, 0.0000001). To get around this, we could enter the number as a STRING and then internally convert it to a number for storage in the db.

    Part of this ticket was to allow ENTRY of numbers with more than 2 decimal places (the previous limitation). This is now supported. (We allow up to 16 significant digits -- the maximum supported by a NUMBER type.)

    The rest of this ticket is to DISPLAY numbers in a reasonable format (per my interpretation due to lack of detailed requirements). I decided, for column width sanity, to format the numbers differently depending on their size. I looked at the existing par values in COLIN to come up with the following, which handles most numbers in full precision (with a few displaying in scientific notation):

    • if value is less than 1e-12 then use scientific notation with at least 1 fraction digit and up to 20 fraction digits, eg, 0.00000000000012345 => 1.2345e-13
    • if value is less than 1e7 (10,000,000) then use non-scientific notation with at least 2 fraction digits (eg, x.xx) and up to 20 fraction digits, eg, 9,999,999.99
    • if value is less than 1e10 (10,000,000,000) then use non-scientific notation with at least 0 fraction digits and up to 20 fraction digits, eg, 9,999,999,999
    • if value is greater than this then use scientific notation with at least 1 fraction digit and up to 20 fraction digits, eg, 10,000,000,000 => 1.0e10
    • the above applies to values in CAD, USD or AUD; other currencies have no formatting at all ("full precision")

    If desired, I can remove or adjust the above formatting. I picked those rules to catch as many COLIN par values as possible and retain "reasonable" formatting for dollar values, while using alternate formatting for very small or very large values.

  10. severinbeauvais commented on Mar 10, 2026

    @severinbeauvais
    Collaborator

    The largest par values in COLIN:
    image.png

    The smallest par values in COLIN:
    image.png

  11. severinbeauvais commented on Mar 10, 2026

    @severinbeauvais
    Collaborator

    This ticket is already in a release to Prod (today I believe). Therefore, it cannot easily be held back. Instead, ticket #32772 has been created for follow-up work.

  12. gunanagar commented on Mar 10, 2026

    @gunanagar
    Collaborator

    Screenshot 2026-03-10 at 3.32.49 PM.png

  13. self-assigned this
    on Mar 10, 2026
  14. gunanagar commented on Mar 11, 2026

    @gunanagar
    Collaborator

    Screenshot 2026-03-11 at 12.15.19 PM.png

    Screenshot 2026-03-11 at 12.11.26 PM.png

  15. severinbeauvais commented on Mar 11, 2026

    @severinbeauvais
    Collaborator

    Re: "Amount has too many significant digits"

    This validation is required because that's the maximum possible resolution (*) for NUMBER types. I have not seen a requirement for more than this (nor a sample from COLIN).

    * resolution = number of significant digits = the mantissa of the number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Entities - Data MigrationEntities TeamPriority2UX Assurance

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions