Package com.ngt.jopenmetaverse.shared.structureddata

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSD.asReal()


         
              OSD llsdFour = OSD.FromReal(Double.MIN_VALUE);
              String sFour = NotationalLLSDOSDParser.SerializeLLSDNotation(llsdFour);
              OSD llsdFourDS = NotationalLLSDOSDParser.DeserializeLLSDNotation(sFour);
              Assert.assertEquals(OSDType.Real, llsdFourDS.getType());
              Assert.assertEquals(Double.MIN_VALUE, llsdFourDS.asReal(), 0);

              OSD llsdFive = OSD.FromReal(-1.1123123E+50d);
              String sFive = NotationalLLSDOSDParser.SerializeLLSDNotation(llsdFive);
              OSD llsdFiveDS = NotationalLLSDOSDParser.DeserializeLLSDNotation(sFive);
              Assert.assertEquals(OSDType.Real, llsdFiveDS.getType());
View Full Code Here


              OSD llsdFive = OSD.FromReal(-1.1123123E+50d);
              String sFive = NotationalLLSDOSDParser.SerializeLLSDNotation(llsdFive);
              OSD llsdFiveDS = NotationalLLSDOSDParser.DeserializeLLSDNotation(sFive);
              Assert.assertEquals(OSDType.Real, llsdFiveDS.getType());
              Assert.assertEquals(-1.1123123E+50d, llsdFiveDS.asReal(), 0);

              OSD llsdSix = OSD.FromReal(2.0193899999999998204e-06);
              String sSix = NotationalLLSDOSDParser.SerializeLLSDNotation(llsdSix);
              OSD llsdSixDS = NotationalLLSDOSDParser.DeserializeLLSDNotation(sSix);
              Assert.assertEquals(OSDType.Real, llsdSixDS.getType());
View Full Code Here

              OSD llsdSix = OSD.FromReal(2.0193899999999998204e-06);
              String sSix = NotationalLLSDOSDParser.SerializeLLSDNotation(llsdSix);
              OSD llsdSixDS = NotationalLLSDOSDParser.DeserializeLLSDNotation(sSix);
              Assert.assertEquals(OSDType.Real, llsdSixDS.getType());
              Assert.assertEquals(2.0193899999999998204e-06, llsdSixDS.asReal(), 0);
          }

          @Test
          public void DeserializeUUID() throws OSDException, IOException
          {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.