in reply to "Cast" a wxString to Numeric?
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 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "Cast" a wxString to Numeric?
by jmlynesjr (Deacon) on May 02, 2015 at 18:27 UTC |