Comments (1)
Hello.
Your point is, in other words, the difference in the default number of digits in the "F" format.
string.Format("{0:F}", 1f) // #=> "1.000"
ZString.Format("{0:F}", 1f) // #=> "1.00"
If the number of digits is important, you can specify the format string.
ZString.Format("{0:F3}", 1f)` // #=> "1.000"
from zstring.
Related Issues (20)
- ZString not compatible with Unity 2023.2 HOT 1
- Unittest failed HOT 1
- Naming conflict with TextMeshPro and their Extensions
- Feature request: make `Length` writable HOT 2
- Are there any precautions when repeating the passing method? HOT 1
- Still have GC?? HOT 1
- Unity 2021.3.2f1 is getting over 1kb of gc collection from zstring HOT 3
- Should not promote TMP_Text.SetCharArray because it allocates too much HOT 1
- ZString.Join is looklike bad HOT 4
- Any planned support for a Format() that takes a param array? HOT 1
- Workaround for nested ZString.Format calls HOT 1
- Utf8JsonWriter HOT 1
- Joining HashSets does not work, see PR with test HOT 2
- Compilation errors HOT 1
- About .NET 7.0 Support
- .Append(string) does not work when ZString is created as a readonly class member HOT 1
- v2.5.1 compile error: BitOperations duplicate in System.Runtime HOT 11
- Huge amounts of GC when appending floats HOT 2
- How does this compare to MikePopoloski/StringFormatter? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zstring.