logo
  • 教程列表
  • SO官方文檔
  • 屬性影象
    • 使用 Image 屬性列印出 float
    • 使用 Image 屬性列印輸出整數
    • 使用 Image 屬性列印列舉
    • 使用屬性 Image 列印列舉
    • 使用屬性 Image 列印出 Integer
    • 使用屬性 Image 列印 Float
    • 作為逆轉
  1. StackOverflow 文件
  2. ada 教程
  3. 屬性影象
  4. 使用屬性 Image 列印 Float

使用屬性 Image 列印 Float

Created: November-22, 2018

with Ada.Text_IO;

procedure Main is
   X : Float := 2.71;
begin
   Ada.Text_IO.Put_Line (Float'Image (X));
end Main;

結果

2.71000E+00
  • 作為逆轉
  • 使用屬性 Image 列印出 Integer

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明