Convert::MIL1750A

Description

Convert::MIL1750A is a Perl module for conversion routines between decimal floating/integer values and hexadecimal values in the MIL-STD-1750A format. SYNOPSIS use MIL1750A; # Convert to MIL-STD-1750A hex from decimal $hex16i = I16_to_1750A( $dec_value ); $hex16f = F16_to_1750A( $dec_value ); $hex32f = F32_to_1750A( $dec_value ); $hex48f = F48_to_1750A( $dec_value ); # Convert MIL-STD-1750A hex to decimal $dec_value = M1750A_to_16int( $hex16i ); $dec_value = M1750A_to_16flt( $hex16f ); $dec_value = M1750A_to_32flt( $hex32f ); $dec_value = M1750A_to_48flt( $hex48f ); or ... use MIL1750A qw( i16_to_mil f16_to_mil f32_to_mil f48_to_mil mil_to_32f mil_to_48f mil_to_16f mil_to_16i ); # Convert to MIL-STD-1750A hex from decimal $hex16i = i16_to_mil( $dec_value ); $hex16f = f16_to_mil( $dec_value ); $hex32f = f32_to_mil( $dec_value ); $hex48f = f48_to_mil( $dec_value ); # Convert MIL-STD-1750A hex to decimal $dec_value = mil_to_16i( $hex16i ); $dec_value = mil_to_16f( $hex16f ); $dec_value = mil_to_32f( $hex32f ); $dec_value = mil_to_48f( $hex48f ); Convert::MIL1750A features routines to convert between 16I/16F/32F/48F decimal values and their equivalent in MIL-STD-1750A hexadecimal. The 1750A standard describes a microprocessor that is used as the backbone of many modern and legacy avionics systems. The 1750A stores data as an 8-bit exponent and n-bit mantissa (where n is the number of bits remaining in the value). It is important to treat 16-bit values as 16-bit, 32-bit as 32-bit and 48-bit as 48-bit. Crossing bit structures will create unexpected results as 1750A hex values are structured differently, depending on their size. Additionally, the 16F format is not a formal member of the 1750A standard; it is used, however, in certain applications and is provided for reference. The 1750A standard allows positive and negative values using the 2s complement arrangement. This module is extremely useful for ingesting data output by or for a 1750A flight processor. I would like to thank and acknowledge Dave Niklewski for helping me to find the standard documentation.Convert::MIL1750A is a Perl module for conversion routines between decimal floating/integer values and hexadecimal values in the MIL-STD-1750A format..

Perl Module - Value - Dec - Values - Decimal - Libraries - Programming

Published By:Jared Clarke

License Type:Freeware

Date Added:25 October, 2010

Version:0.1

Price:Free

Downloads:31

Size:4.1 KB

Platform: Linux

What people say
- required fields
     
Related Downloads

Data::Encrypted is a Perl module to transparently store encrypted data via RSA. SYNOPSIS # functional interface: use Data::Encrypted file => "./.

DateAug 12, 2010

AuthorAaron J Mackey

Size7.2 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

XML::Generator::vCard is a Perl module that can generate SAX2 events for vCard 3.

DateOct 4, 2010

AuthorAaron Straup Cope

Size7.2 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

WWW::Webrobot::pod::Testplan is a Perl module that helps you on how to write a test plan for webrobot. A test plan is a list of elements. An element itself may be a request, a (sub) test plan, an include or a cookie control command.

DateAug 25, 2010

AuthorABAS Software AG

Size98.3 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

Test::Stochastic is a Perl module to check probabilities of randomized methods. SYNOPSIS use Test::Stochastic qw(stochastic_ok); stochastic_ok sub { ...random sub...}, {a => 0.4, b => 0.6}; stochastic_ok {a => 0.4, b => 0.

DateAug 26, 2010

AuthorAbhijit Mahabal

Size4.1 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

Games::SGF::Tournament is a Perl module for tournament statistics generator.

DateOct 6, 2010

AuthorAl Nikolov

Size12.3 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming