EndsWithNumberN()
EndsWithNumberN(pcNumStr): TRUE if the content ENDS with the given number-as-string. Accepts optional leading sign in pcNumStr.
also written: EndsWithThisNumber
Basic examples (2)
o1 = new stzString("Amount: -132.45")
# it ends with a number
? o1.EndsWithANumber()
# the explicit check
? o1.EndsWithThisNumber("-132.45")
# the trailing number
? o1.TrailingNumber()1 1 -132.45
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 409_endswithanumber.ring(opens in a new tab)
o1 = new stzString("Amount: +132.45")
# it ends with a number
? o1.EndsWithANumber()
# the N-suffixed check
? o1.EndsWithNumberN("+132.45")
# the trailing number keeps the plus
? o1.TrailingNumber()1 1 +132.45
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 410_endswithanumber.ring(opens in a new tab)
Scope (1)
o1 = new stzString("Amount: +132.45")
# it ends with a number
? o1.EndsWithANumber()
# the unsigned check passes
? o1.EndsWithNumberN("132.45")
# the trailing number keeps the plus
? o1.TrailingNumber()1 1 +132.45
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 411_endswithanumber.ring(opens in a new tab)
The extensions of this method
Each extension, and whether it exists for this method; an extension that exists combines with the others (FindSTCS).
Every example is a test file of the library, run inside the library for this page; only those whose output kept every promise their file wrote are shown.
See also
- The class stzString
- The area's reference: String
- The other methods in these examples: stzString.EndsWithANumber · stzString.TrailingNumber

