View source code
							
							
						
								Display the source code in std/int128.d from which this
								page was generated on github.
							
						
							Report a bug
							
						
								If you spot a problem with this page, click here to create a
								Bugzilla issue.
							
						
							
								Improve this page
							
							
					
								Quickly fork, edit online, and submit a pull request for this page.
								Requires a signed-in GitHub account. This works well for small changes.
								If you'd like to make larger changes you may want to consider using
								local clone.
							
						Function std.int128.Int128.toString
Formats Int128 with either %d, %x, %X, or %s (same as %d).
						
				void toString(Writer, FormatSpec)
				(
				
				  scope ref Writer sink,
				
				  scope const ref FormatSpec fmt
				
				) const;
						
					
				Parameters
| Name | Description | 
|---|---|
| sink | Output range to write to. | 
| fmt | A stdwhich controls how the number
   is displayed. | 
Throws
std if the format specifier is
       not one of 'd', 'x', 'X', 's'.
See Also
std
Example
toString is rarely directly invoked; the usual way of using it is via
        std:
import stdExample
Also can format as wchar or dchar.
import stdAuthors
License
					Copyright © 1999-2024 by the D Language Foundation | Page generated by ddox.