Menu
Parsica LogoParsica
Documentation
  • 0.8.1
  • 0.8.0
  • 0.7.0
  • 0.6.1
  • 0.6.0
  • 0.5.2
  • 0.4.0
  • 0.3.1
  • dev-main
Releases
GitHubTwitter
Parsica LogoParsica
  • Documentation
    • 0.8.1
    • 0.8.0
    • 0.7.0
    • 0.6.1
    • 0.6.0
    • 0.5.2
    • 0.4.0
    • 0.3.1
    • dev-main
  • Releases
  • GitHub
  • Twitter
  • About Parsica
  • Releases
  • Installation & Requirements
  • API Reference
    • PHPUnit/ParserAssertions
    • JSON/JSON
    • characters
    • combinators
    • numeric
    • Parser
    • ParseResult
    • ParserFailure
    • predicates
    • primitives
    • recursion
    • sideEffects
    • space
    • Stream
    • strings
    • StringStream
  • Tutorial
    • What are parser combinators?
    • Building Blocks
    • Running Parsers
    • Mapping to Objects
    • Order matters
    • Recursion
    • Looking ahead
    • Errors and labels
    • Side Effects and Events
  • Resources
    • Development Status
    • Performance
    • Naming Conventions
    • Functional Paradigms
  • Contribute
    • Design Goals
This is archived documentation for Parsica v0.4.0, which is no longer actively maintained.
For up-to-date documentation, see the latest version.
Version: 0.4.0

numeric

float#

Warning: Deprecated

Parse a float. Returns the float as a string. Use ->map('floatval') or similar to cast it to a numeric type.

function float() : Parser
Edit this page
Previous
« combinators
Next
Parser »
  • float
Copyright © 2021 Toon Daelman