From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

our $VERSION = '0.01';
use X3D 'SFDouble : X3DField { 0 }';
sub setValue {
my ( $this, $value ) = @_;
$this->X3DField::setValue(
defined $value ? eval { no warnings; $value + 0 } || 0 : $this->getDefaultValue
);
}
sub toString { sprintf X3DGenerator->DOUBLE, $_[0]->getValue }
1;
__END__