// ToInt32Checked attempts to cast the Float32 to a Int32.
// The second return value will be false if there was an overflow or any other loss of precision.
// For example, going from Float64 to Int64 will result in anything after the decimal being truncated.
// The result will be truncated. 123.567 => 123
ToInt32Checked attempts to cast the Float32 to a Int32.
The second return value will be false if there was an overflow or any other loss of precision.
For example, going from Float64 to Int64 will result in anything after the decimal being truncated.
The result will be truncated.
// ToInt32Checked attempts to cast the Float32 to a Int32 . // The second return value will be false if there was an overflow or any other loss of precision . // For example going from Float64 to Int64 will result in anything after the decimal being truncated . // The result will be truncated . 123 . 567 = > 123
func (t Float32) ToInt32Checked() (Int32, Boolean) {
	var converted Int32
	converted = Int32(t)
	v, err := converted.ToFloat32().Eq(t)
	return converted, Boolean(err == nil && v)
}
func ( t Float32 ) ToInt32Checked ( ) ( Int32 , Boolean ) { var converted Int32 converted = Int32 ( t ) v , err := converted . ToFloat32 ( ) . Eq ( t ) return converted , Boolean ( err == nil && v ) }
ToInt32Checked attempts to cast the Float32 to a Int32.
ToInt32Checked attempts to cast the Float32 to a Int32 .