Skip to documentation
SplitScript
  • Language
  • Standard library
  • Guides
  • Migration

SplitScript reference / FileVersion / toString

FileVersion.toString

Method

FileVersion.toString() -> String

Formats the version as major.minor.build.private.

This is the standard-library implementation of Display, so casts, interpolation, print, and setVariable all use the same spelling.

Effects: pure

Runtime behavior: available everywhere; synchronous

Examples

Format a discovered executable version explicitly

let text = v"1.2.3.4".toString()
Generated from the SplitScript compiler's documentation catalogs.