-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement string interpolation for floats (#39)
Summary: Addresses: #3 Spec: https://github.com/bazelbuild/starlark/blob/689f54426951638ef5b7c41a14d8fc48e65c5f77/spec.md#string-interpolation Changes: - adds `float::write_{decimal,scientific,compact}` functions for various kinds of string interpolation for floats - makes `Display for StarlarkFloat` use `write_compact` (as per spec) - makes string interpolation use `write_*` functions Pull Request resolved: #39 Reviewed By: krallin Differential Revision: D31645493 Pulled By: ndmitchell fbshipit-source-id: d47272d4bf301085544acfcfbaf17f1c2577f692
- Loading branch information
1 parent
a804ccd
commit 8c89e4d
Showing
4 changed files
with
236 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters