Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 395
    • Issues 395
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 19
    • Merge requests 19
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2202
Closed
Open
Created Mar 19, 2012 by Robert Bernecky@rbeDeveloper

ArrayFormat show() fails on double scalar/vector (at least)

Bugzilla Link 936
Created on Mar 19, 2012 21:08
Version svn
OS Linux
Architecture PC

Extended Description

Array formatting fails to print double scalars and vectors correctly,
in both show() and format() flavors. This is a long-standing bug.
This function:   cat crud.sac
use Array: all;
use StdIO : all;
use ArrayFormat: all;
int main()
{ 
 print(format(42.5));
 show( 42.5);
 print( 42.5);
 show( [42.5]);
 return(0);
}
produces this output:
 a.out
Dimension:  1
Shape    : < 22>
<                      > 
                      
Dimension:  0
Shape    : < >
 42.5
4
Not even close.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking