Do you really want to treat the empty string as zero? If so, I would simply be more explicit about it:
my $numerator= $IcqText->GetValue; if( $numerator eq '') { $numerator= 0 }; $self->{AMP1}->Icq( $numerator / 1000 );
In reply to Re: "Cast" a wxString to Numeric?
by Corion
in thread "Cast" a wxString to Numeric?
by jmlynesjr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |